We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 410ba42 commit 62285a7Copy full SHA for 62285a7
custom_components/xiaomi_cloud_map_extractor/common/xiaomi_cloud_connector.py
@@ -293,10 +293,8 @@ def generate_agent() -> str:
293
agent_id = "".join(
294
map(lambda i: chr(i), [random.randint(65, 69) for _ in range(13)])
295
)
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"
+ random_text = "".join(map(lambda i: chr(i), [random.randint(97, 122) for _ in range(18)]))
+ return f"{random_text}-{agent_id} APP/com.xiaomi.mihome APPV/10.5.201"
300
301
@staticmethod
302
def generate_device_id() -> str:
0 commit comments