pymiele 0.1.7__py3-none-any.whl → 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pymiele/__init__.py +2 -0
- pymiele/const.py +1 -1
- pymiele/pymiele.py +3 -4
- {pymiele-0.1.7.dist-info → pymiele-0.2.0.dist-info}/METADATA +2 -7
- pymiele-0.2.0.dist-info/RECORD +8 -0
- {pymiele-0.1.7.dist-info → pymiele-0.2.0.dist-info}/WHEEL +1 -1
- pymiele-0.1.7.dist-info/RECORD +0 -8
- {pymiele-0.1.7.dist-info → pymiele-0.2.0.dist-info}/LICENSE +0 -0
- {pymiele-0.1.7.dist-info → pymiele-0.2.0.dist-info}/top_level.txt +0 -0
pymiele/__init__.py
CHANGED
pymiele/const.py
CHANGED
pymiele/pymiele.py
CHANGED
@@ -11,7 +11,6 @@ from abc import ABC, abstractmethod
|
|
11
11
|
from json.decoder import JSONDecodeError
|
12
12
|
from typing import Any, Callable, Coroutine
|
13
13
|
|
14
|
-
import async_timeout
|
15
14
|
from aiohttp import ClientError, ClientResponse, ClientSession, ClientTimeout
|
16
15
|
|
17
16
|
from .const import MIELE_API, VERSION
|
@@ -71,7 +70,7 @@ class AbstractAuth(ABC):
|
|
71
70
|
):
|
72
71
|
"""Set target temperature."""
|
73
72
|
temp = round(temperature)
|
74
|
-
async with
|
73
|
+
async with asyncio.timeout(10):
|
75
74
|
data = {"targetTemperature": [{"zone": zone, "value": temp}]}
|
76
75
|
res = await self.request(
|
77
76
|
"PUT",
|
@@ -90,7 +89,7 @@ class AbstractAuth(ABC):
|
|
90
89
|
"""Send action command."""
|
91
90
|
|
92
91
|
_LOGGER.debug("send_action serial: %s, data: %s", serial, data)
|
93
|
-
async with
|
92
|
+
async with asyncio.timeout(10):
|
94
93
|
res = await self.request(
|
95
94
|
"PUT",
|
96
95
|
f"/devices/{serial}/actions",
|
@@ -108,7 +107,7 @@ class AbstractAuth(ABC):
|
|
108
107
|
"""Send start program command."""
|
109
108
|
|
110
109
|
_LOGGER.debug("set_program serial: %s, data: %s", serial, data)
|
111
|
-
async with
|
110
|
+
async with asyncio.timeout(10):
|
112
111
|
res = await self.request(
|
113
112
|
"PUT",
|
114
113
|
f"/devices/{serial}/programs",
|
@@ -1,21 +1,18 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pymiele
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.2.0
|
4
4
|
Summary: Python library for Miele integration with Home Assistant
|
5
5
|
Home-page: https://github.com/astrandb/pymiele
|
6
6
|
Author: Ake Strandberg
|
7
7
|
Author-email: ake@strandberg.eu
|
8
|
-
License: UNKNOWN
|
9
|
-
Platform: UNKNOWN
|
10
8
|
Classifier: Programming Language :: Python :: 3
|
11
9
|
Classifier: License :: OSI Approved :: MIT License
|
12
10
|
Classifier: Operating System :: OS Independent
|
13
11
|
Classifier: Development Status :: 5 - Production/Stable
|
14
|
-
Requires-Python: >=3.
|
12
|
+
Requires-Python: >=3.12
|
15
13
|
Description-Content-Type: text/markdown
|
16
14
|
License-File: LICENSE
|
17
15
|
Requires-Dist: aiohttp
|
18
|
-
Requires-Dist: async-timeout
|
19
16
|
|
20
17
|
## pymiele
|
21
18
|
|
@@ -26,5 +23,3 @@ The library is distributed via pypi.org.
|
|
26
23
|
```bash
|
27
24
|
$ pip install pymiele
|
28
25
|
```
|
29
|
-
|
30
|
-
|
@@ -0,0 +1,8 @@
|
|
1
|
+
pymiele/__init__.py,sha256=ktGXAWddn6Rz8-Drh1ka6SPj3b3lIhlZ4015K1Hin04,198
|
2
|
+
pymiele/const.py,sha256=jmbdbXIq_MkL9naquxpShmqAXKZzswZQEf5zV2mZLbk,189
|
3
|
+
pymiele/pymiele.py,sha256=z7iD6uQZ8Z7paBs5XgvB6k6jkFo0cSB7ZYAUqPL7ECk,7185
|
4
|
+
pymiele-0.2.0.dist-info/LICENSE,sha256=scGm4_U2pd-rsGa6Edf6zsXFebrMT4RoyQz7-904_Wg,1072
|
5
|
+
pymiele-0.2.0.dist-info/METADATA,sha256=uDied5T_kAmplJefJRBcxqV00QdgI-ZmK0ciknra9dA,694
|
6
|
+
pymiele-0.2.0.dist-info/WHEEL,sha256=a7TGlA-5DaHMRrarXjVbQagU3Man_dCnGIWMJr5kRWo,91
|
7
|
+
pymiele-0.2.0.dist-info/top_level.txt,sha256=BwkHrSO2w_Bfxh6s8Ikcao5enEuQOpQhJ3SwUXBqY10,8
|
8
|
+
pymiele-0.2.0.dist-info/RECORD,,
|
pymiele-0.1.7.dist-info/RECORD
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
pymiele/__init__.py,sha256=cTdN4mEFNkAWtr38Lm22vlNpFdaEwkdHQFG0XYByNKA,141
|
2
|
-
pymiele/const.py,sha256=7g_PaxUK8NcXYzmQaTS2dVd2dZUCYDySvUs-6Ha3r8A,189
|
3
|
-
pymiele/pymiele.py,sha256=Oo6FJ8gw0rho5gLuvA1Lv15RNRwc2WsqkmecVd1hpds,7224
|
4
|
-
pymiele-0.1.7.dist-info/LICENSE,sha256=scGm4_U2pd-rsGa6Edf6zsXFebrMT4RoyQz7-904_Wg,1072
|
5
|
-
pymiele-0.1.7.dist-info/METADATA,sha256=ZYOwJbsy6mTn7fXdVSF6EXe4uCsPz0n8MX7w_O0ivEo,759
|
6
|
-
pymiele-0.1.7.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
7
|
-
pymiele-0.1.7.dist-info/top_level.txt,sha256=BwkHrSO2w_Bfxh6s8Ikcao5enEuQOpQhJ3SwUXBqY10,8
|
8
|
-
pymiele-0.1.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|