pymiele 0.1.6__tar.gz → 0.2.0__tar.gz

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.
@@ -1,19 +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
15
+ Requires-Dist: aiohttp
17
16
 
18
17
  ## pymiele
19
18
 
@@ -24,5 +23,3 @@ The library is distributed via pypi.org.
24
23
  ```bash
25
24
  $ pip install pymiele
26
25
  ```
27
-
28
-
@@ -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
@@ -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"
@@ -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,19 +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
15
+ Requires-Dist: aiohttp
17
16
 
18
17
  ## pymiele
19
18
 
@@ -24,5 +23,3 @@ The library is distributed via pypi.org.
24
23
  ```bash
25
24
  $ pip install pymiele
26
25
  ```
27
-
28
-
@@ -0,0 +1 @@
1
+ aiohttp
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 0.1.6
2
+ current_version = 0.2.0
3
3
 
4
4
  [flake8]
5
5
  exclude = .venv,.git,.tox,docs,venv,bin,lib,deps,build
@@ -42,6 +42,6 @@ setuptools.setup(
42
42
  # 5 - Production/Stable
43
43
  "Development Status :: 5 - Production/Stable",
44
44
  ],
45
- python_requires='>=3.9',
46
- install_requires=["aiohttp" ,"asyncio", "async_timeout"],
45
+ python_requires='>=3.12',
46
+ install_requires=["aiohttp", ],
47
47
  )
@@ -1,3 +0,0 @@
1
- aiohttp
2
- asyncio
3
- async_timeout
File without changes
File without changes