python-aidot 0.2.0__tar.gz → 0.2.1__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.0
3
+ Version: 0.2.1
4
4
  Summary: aidot control wifi lights
5
5
  Home-page: https://github.com/Aidot-Development-Team/python-aidot
6
6
  Author: aidotdev2024
@@ -176,4 +176,5 @@ SUPPORTED_COUNTRYS = [
176
176
  {"_id": "23-0", "id": "YE", "name": "Yemen", "ext": "", "region": "JP"},
177
177
  ]
178
178
 
179
- SUPPORTED_COUNTRY_NAMES = [item["name"] for item in SUPPORTED_COUNTRYS]
179
+ SUPPORTED_COUNTRY_NAMES = [item["name"] for item in SUPPORTED_COUNTRYS]
180
+ DEFAULT_COUNTRY_NAME = "United States"
@@ -42,10 +42,19 @@ class LoginControl:
42
42
  def __init__(self) -> None:
43
43
  self.LoginData = LoginData()
44
44
  self.region = "us"
45
+ self.username = ""
45
46
 
46
- @property
47
- def get_region(self) -> str:
48
- return self.region
47
+ def get_identifier(self,house_id: str) -> str:
48
+ identifier = (
49
+ "username:"
50
+ + self.username
51
+ + ","
52
+ + "house_id:"
53
+ + house_id
54
+ + "region:"
55
+ + self.region
56
+ )
57
+ return identifier
49
58
 
50
59
  def change_country_code(self, selected_contry_obj: str):
51
60
  """Do change_country_code."""
@@ -130,7 +139,7 @@ class LoginControl:
130
139
 
131
140
  async def async_post_login(self, hass: HomeAssistant, username: str, password: str):
132
141
  """Login the user input allows us to connect."""
133
-
142
+ self.username = username
134
143
  url = f"{self.LoginData.baseUrl}/users/loginWithFreeVerification"
135
144
  headers = {"Appid": APP_ID, "Terminal": "app"}
136
145
  data = {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: python-aidot
3
- Version: 0.2.0
3
+ Version: 0.2.1
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.0",
8
+ version="0.2.1",
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