mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-12-27 00:19:34 +08:00
perf: remove unused device info (#1574)
Some checks failed
Tests / check-rule-format (push) Failing after -8m20s
Validate / validate-hassfest (push) Failing after -8m21s
Validate / validate-hacs (push) Failing after -8m14s
Validate / validate-lint (push) Failing after -8m22s
Validate / validate-setup (push) Failing after -8m20s
Some checks failed
Tests / check-rule-format (push) Failing after -8m20s
Validate / validate-hassfest (push) Failing after -8m21s
Validate / validate-hacs (push) Failing after -8m14s
Validate / validate-lint (push) Failing after -8m22s
Validate / validate-setup (push) Failing after -8m20s
This commit is contained in:
@@ -1394,19 +1394,9 @@ class MipsLocalClient(_MipsClient):
|
||||
continue
|
||||
device_list[did] = {
|
||||
'did': did,
|
||||
'name': name,
|
||||
'urn': urn,
|
||||
'model': model,
|
||||
'online': info.get('online', False),
|
||||
'icon': info.get('icon', None),
|
||||
'fw_version': None,
|
||||
'home_id': '',
|
||||
'home_name': '',
|
||||
'room_id': info.get('roomId', ''),
|
||||
'room_name': info.get('roomName', ''),
|
||||
'specv2_access': info.get('specV2Access', False),
|
||||
'push_available': info.get('pushAvailable', False),
|
||||
'manufacturer': model.split('.')[0],
|
||||
'push_available': info.get('pushAvailable', False)
|
||||
}
|
||||
return device_list
|
||||
|
||||
|
||||
Reference in New Issue
Block a user