pymiele 0.1.6__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 CHANGED
@@ -1,3 +1,5 @@
1
1
  """Library for Miele integration with Home Assistant."""
2
+
2
3
  from .const import * # noqa: F401, F403
4
+ from .const import VERSION as __version__ # noqa: F401
3
5
  from .pymiele import * # noqa: F401, F403
pymiele/const.py CHANGED
@@ -1,4 +1,4 @@
1
- VERSION = "0.1.6"
1
+ VERSION = "0.2.0"
2
2
 
3
3
  MIELE_API = "https://api.mcs3.miele.com/v1"
4
4
  OAUTH2_AUTHORIZE = "https://api.mcs3.miele.com/thirdparty/login"
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 async_timeout.timeout(10):
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 async_timeout.timeout(10):
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 async_timeout.timeout(10):
110
+ async with asyncio.timeout(10):
112
111
  res = await self.request(
113
112
  "PUT",
114
113
  f"/devices/{serial}/programs",
@@ -1,22 +1,18 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pymiele
3
- Version: 0.1.6
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.9
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: asyncio
19
- Requires-Dist: async-timeout
20
16
 
21
17
  ## pymiele
22
18
 
@@ -27,5 +23,3 @@ The library is distributed via pypi.org.
27
23
  ```bash
28
24
  $ pip install pymiele
29
25
  ```
30
-
31
-
@@ -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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.37.1)
2
+ Generator: setuptools (75.4.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,8 +0,0 @@
1
- pymiele/__init__.py,sha256=cTdN4mEFNkAWtr38Lm22vlNpFdaEwkdHQFG0XYByNKA,141
2
- pymiele/const.py,sha256=fKOfeCszErwdz38woYrZ_3Sr3OG1AixdN8FMgTbhTHE,189
3
- pymiele/pymiele.py,sha256=Oo6FJ8gw0rho5gLuvA1Lv15RNRwc2WsqkmecVd1hpds,7224
4
- pymiele-0.1.6.dist-info/LICENSE,sha256=scGm4_U2pd-rsGa6Edf6zsXFebrMT4RoyQz7-904_Wg,1072
5
- pymiele-0.1.6.dist-info/METADATA,sha256=qLX-iV-qcrJ63plCLBn7o88urt-5kQx7AY-Ne2eG02M,782
6
- pymiele-0.1.6.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
7
- pymiele-0.1.6.dist-info/top_level.txt,sha256=BwkHrSO2w_Bfxh6s8Ikcao5enEuQOpQhJ3SwUXBqY10,8
8
- pymiele-0.1.6.dist-info/RECORD,,