mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Fix Switchbot unsupported SB types (#56928)
This commit is contained in:
parent
a95c6b10f7
commit
7d6b4a985d
@ -112,7 +112,7 @@ class SwitchbotConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||
unconfigured_devices = {
|
||||
device["mac_address"]: f"{device['mac_address']} {device['modelName']}"
|
||||
for device in self._discovered_devices.values()
|
||||
if device["modelName"] in SUPPORTED_MODEL_TYPES
|
||||
if device.get("modelName") in SUPPORTED_MODEL_TYPES
|
||||
and device["mac_address"] not in configured_devices
|
||||
}
|
||||
|
||||
|
@ -41,6 +41,12 @@ class MocGetSwitchbotDevices:
|
||||
"model": "c",
|
||||
"modelName": "WoCurtain",
|
||||
},
|
||||
"ffffff19ffff": {
|
||||
"mac_address": "ff:ff:ff:19:ff:ff",
|
||||
"Flags": "06",
|
||||
"Manufacturer": "5900ffffff19ffff",
|
||||
"Complete 128b Services": "cba20d00-224d-11e6-9fb8-0002a5d5c51b",
|
||||
},
|
||||
}
|
||||
self._curtain_all_services_data = {
|
||||
"mac_address": "e7:89:43:90:90:90",
|
||||
|
Loading…
x
Reference in New Issue
Block a user