Skip to content

Commit 62285a7

Browse files
Update agent id
1 parent 410ba42 commit 62285a7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

custom_components/xiaomi_cloud_map_extractor/common/xiaomi_cloud_connector.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,8 @@ def generate_agent() -> str:
293293
agent_id = "".join(
294294
map(lambda i: chr(i), [random.randint(65, 69) for _ in range(13)])
295295
)
296-
a = random.randint(0, 9)
297-
b = random.randint(0, 9)
298-
c = random.randint(0, 9)
299-
return f"Android-7.1.1-{a}.{b}.{c}-ONEPLUS A3011-136-{agent_id} APP/xiaomi.smarthome APPV/62830"
296+
random_text = "".join(map(lambda i: chr(i), [random.randint(97, 122) for _ in range(18)]))
297+
return f"{random_text}-{agent_id} APP/com.xiaomi.mihome APPV/10.5.201"
300298

301299
@staticmethod
302300
def generate_device_id() -> str:

0 commit comments

Comments
 (0)