homebridge-kasa-python 2.6.10 → 2.6.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/python/kasaApi.py +10 -0
- package/package.json +1 -1
package/dist/python/kasaApi.py
CHANGED
|
@@ -141,6 +141,16 @@ async def discover_devices(username=None, password=None, additional_broadcasts=N
|
|
|
141
141
|
|
|
142
142
|
for ip, dev in devices.items():
|
|
143
143
|
dev: Device
|
|
144
|
+
try:
|
|
145
|
+
components = await dev._raw_query("component_nego")
|
|
146
|
+
component_list = components.get("component_nego", {}).get("component_list", [])
|
|
147
|
+
homekit_component = next((item for item in component_list if item.get("id") == "homekit"), None)
|
|
148
|
+
if not dev.alias and homekit_component:
|
|
149
|
+
app.logger.debug(f"Native HomeKit Support found for device {ip} and was not added to update tasks")
|
|
150
|
+
continue
|
|
151
|
+
except Exception:
|
|
152
|
+
app.logger.debug(f"Native HomeKit Support not found for device {ip}")
|
|
153
|
+
|
|
144
154
|
try:
|
|
145
155
|
dev_type = dev.sys_info.get("mic_type") or dev.sys_info.get("type")
|
|
146
156
|
if dev_type and dev_type not in UNSUPPORTED_TYPES:
|
package/package.json
CHANGED