python-aidot 0.3.43__tar.gz → 0.3.44__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,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: python-aidot
3
- Version: 0.3.43
3
+ Version: 0.3.44
4
4
  Summary: aidot control wifi lights
5
5
  Home-page: https://github.com/Aidot-Development-Team/python-aidot
6
6
  Author: aidotdev2024
@@ -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.43
3
+ Version: 0.3.44
4
4
  Summary: aidot control wifi lights
5
5
  Home-page: https://github.com/Aidot-Development-Team/python-aidot
6
6
  Author: aidotdev2024
@@ -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.43",
8
+ version="0.3.44",
9
9
  author="aidotdev2024",
10
10
  url='https://github.com/Aidot-Development-Team/python-aidot',
11
11
  description="aidot control wifi lights",
File without changes
File without changes
File without changes