python-aidot 0.3.43__tar.gz → 0.3.45__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.
- {python_aidot-0.3.43 → python_aidot-0.3.45}/PKG-INFO +1 -2
- {python_aidot-0.3.43 → python_aidot-0.3.45}/aidot/client.py +3 -2
- {python_aidot-0.3.43 → python_aidot-0.3.45}/python_aidot.egg-info/PKG-INFO +1 -2
- {python_aidot-0.3.43 → python_aidot-0.3.45}/python_aidot.egg-info/requires.txt +0 -1
- {python_aidot-0.3.43 → python_aidot-0.3.45}/setup.py +1 -2
- {python_aidot-0.3.43 → python_aidot-0.3.45}/LICENSE +0 -0
- {python_aidot-0.3.43 → python_aidot-0.3.45}/README.md +0 -0
- {python_aidot-0.3.43 → python_aidot-0.3.45}/aidot/__init__.py +0 -0
- {python_aidot-0.3.43 → python_aidot-0.3.45}/aidot/aes_utils.py +0 -0
- {python_aidot-0.3.43 → python_aidot-0.3.45}/aidot/const.py +0 -0
- {python_aidot-0.3.43 → python_aidot-0.3.45}/aidot/device_client.py +0 -0
- {python_aidot-0.3.43 → python_aidot-0.3.45}/aidot/discover.py +0 -0
- {python_aidot-0.3.43 → python_aidot-0.3.45}/aidot/exceptions.py +0 -0
- {python_aidot-0.3.43 → python_aidot-0.3.45}/aidot/login_const.py +0 -0
- {python_aidot-0.3.43 → python_aidot-0.3.45}/python_aidot.egg-info/SOURCES.txt +0 -0
- {python_aidot-0.3.43 → python_aidot-0.3.45}/python_aidot.egg-info/dependency_links.txt +0 -0
- {python_aidot-0.3.43 → python_aidot-0.3.45}/python_aidot.egg-info/top_level.txt +0 -0
- {python_aidot-0.3.43 → python_aidot-0.3.45}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: python-aidot
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.45
|
|
4
4
|
Summary: aidot control wifi lights
|
|
5
5
|
Home-page: https://github.com/Aidot-Development-Team/python-aidot
|
|
6
6
|
Author: aidotdev2024
|
|
@@ -11,7 +11,6 @@ Description-Content-Type: text/markdown
|
|
|
11
11
|
License-File: LICENSE
|
|
12
12
|
Requires-Dist: requests
|
|
13
13
|
Requires-Dist: aiohttp
|
|
14
|
-
Requires-Dist: setuptools
|
|
15
14
|
Dynamic: author
|
|
16
15
|
Dynamic: classifier
|
|
17
16
|
Dynamic: description
|
|
@@ -92,6 +92,7 @@ class AidotClient:
|
|
|
92
92
|
self.password = token[CONF_PASSWORD]
|
|
93
93
|
self._region = token[CONF_REGION]
|
|
94
94
|
self.country_name = token[CONF_COUNTRY]
|
|
95
|
+
self._base_url = f"https://prod-{self._region}-api.arnoo.com/v17"
|
|
95
96
|
|
|
96
97
|
def set_token_fresh_cb(self, callback) -> None:
|
|
97
98
|
self._token_fresh_cb = callback
|
|
@@ -151,7 +152,7 @@ class AidotClient:
|
|
|
151
152
|
self._token_fresh_cb()
|
|
152
153
|
return response_data
|
|
153
154
|
except aiohttp.ClientError as e:
|
|
154
|
-
_LOGGER.info(f"async_refresh_token ClientError {e}")
|
|
155
|
+
_LOGGER.info(f"async_refresh_token ClientError {e} {response_data}")
|
|
155
156
|
if response_data[CONF_CODE] == ServerErrorCode.LOGIN_INVALID:
|
|
156
157
|
raise AidotAuthFailed
|
|
157
158
|
return None
|
|
@@ -176,7 +177,7 @@ class AidotClient:
|
|
|
176
177
|
response.raise_for_status()
|
|
177
178
|
return response_data
|
|
178
179
|
except aiohttp.ClientError as e:
|
|
179
|
-
_LOGGER.info(f"async_get ClientError {e}")
|
|
180
|
+
_LOGGER.info(f"async_get ClientError {e} {response_data}")
|
|
180
181
|
code = response_data.get(CONF_CODE)
|
|
181
182
|
if code == ServerErrorCode.TOKEN_EXPIRED:
|
|
182
183
|
try:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: python-aidot
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.45
|
|
4
4
|
Summary: aidot control wifi lights
|
|
5
5
|
Home-page: https://github.com/Aidot-Development-Team/python-aidot
|
|
6
6
|
Author: aidotdev2024
|
|
@@ -11,7 +11,6 @@ Description-Content-Type: text/markdown
|
|
|
11
11
|
License-File: LICENSE
|
|
12
12
|
Requires-Dist: requests
|
|
13
13
|
Requires-Dist: aiohttp
|
|
14
|
-
Requires-Dist: setuptools
|
|
15
14
|
Dynamic: author
|
|
16
15
|
Dynamic: classifier
|
|
17
16
|
Dynamic: description
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
|
5
5
|
|
|
6
6
|
setuptools.setup(
|
|
7
7
|
name="python-aidot",
|
|
8
|
-
version="0.3.
|
|
8
|
+
version="0.3.45",
|
|
9
9
|
author="aidotdev2024",
|
|
10
10
|
url='https://github.com/Aidot-Development-Team/python-aidot',
|
|
11
11
|
description="aidot control wifi lights",
|
|
@@ -15,7 +15,6 @@ setuptools.setup(
|
|
|
15
15
|
install_requires=[
|
|
16
16
|
"requests",
|
|
17
17
|
"aiohttp",
|
|
18
|
-
"setuptools",
|
|
19
18
|
],
|
|
20
19
|
classifiers=(
|
|
21
20
|
"Programming Language :: Python :: 3.12",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|