python-aidot 0.2.7__tar.gz → 0.2.9__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.2.7
3
+ Version: 0.2.9
4
4
  Summary: aidot control wifi lights
5
5
  Home-page: https://github.com/Aidot-Development-Team/python-aidot
6
6
  Author: aidotdev2024
@@ -25,6 +25,7 @@ from .const import (
25
25
  CONF_PASSWORD,
26
26
  CONF_CODE,
27
27
  CONF_TOKEN,
28
+ CONF_DEVICE_LIST,
28
29
  ServerErrorCode
29
30
  )
30
31
  from .exceptions import AidotAuthFailed,AidotUserOrPassIncorrect
@@ -116,7 +117,7 @@ class AidotClient:
116
117
  _LOGGER.info(f"async_post_login ClientError {e}")
117
118
  if response_data[CONF_CODE] == ServerErrorCode.USER_PWD_INCORRECT:
118
119
  raise AidotUserOrPassIncorrect
119
- return None
120
+ raise Exception
120
121
 
121
122
  async def async_refresh_token(self):
122
123
  url = f"{self._base_url}/users/refreshToken"
@@ -207,4 +208,4 @@ class AidotClient:
207
208
  device[CONF_PRODUCT] = product
208
209
  except Exception as e:
209
210
  raise e
210
- return final_device_list
211
+ return {CONF_DEVICE_LIST:final_device_list}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: python-aidot
3
- Version: 0.2.7
3
+ Version: 0.2.9
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.2.7",
8
+ version="0.2.9",
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
File without changes