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.
@@ -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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Homebridge Kasa Python",
3
3
  "name": "homebridge-kasa-python",
4
- "version": "2.6.10",
4
+ "version": "2.6.11",
5
5
  "description": "Plugin that uses Python-Kasa API to communicate with Kasa Devices.",
6
6
  "license": "MIT",
7
7
  "type": "module",