mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-29 01:41:55 +08:00
perf: remove unused device info (#1574)
Some checks failed
Tests / check-rule-format (push) Has been cancelled
Validate / validate-hassfest (push) Has been cancelled
Validate / validate-hacs (push) Has been cancelled
Validate / validate-lint (push) Has been cancelled
Validate / validate-setup (push) Has been cancelled
Some checks failed
Tests / check-rule-format (push) Has been cancelled
Validate / validate-hassfest (push) Has been cancelled
Validate / validate-hacs (push) Has been cancelled
Validate / validate-lint (push) Has been cancelled
Validate / validate-setup (push) Has been cancelled
This commit is contained in:
@@ -601,15 +601,8 @@ class MIoTHttpClient:
|
||||
'bssid': device.get('bssid', None),
|
||||
'order_time': device.get('orderTime', 0),
|
||||
'fw_version': device.get('extra', {}).get(
|
||||
'fw_version', 'unknown'),
|
||||
}
|
||||
if isinstance(device.get('extra', None), dict) and device['extra']:
|
||||
device_infos[did]['fw_version'] = device['extra'].get(
|
||||
'fw_version', None)
|
||||
device_infos[did]['mcu_version'] = device['extra'].get(
|
||||
'mcu_version', None)
|
||||
device_infos[did]['platform'] = device['extra'].get(
|
||||
'platform', None)
|
||||
}
|
||||
|
||||
next_start_did = res_obj.get('next_start_did', None)
|
||||
if res_obj.get('has_more', False) and next_start_did:
|
||||
|
||||
Reference in New Issue
Block a user