homebridge-kasa-python 2.5.3 → 2.5.4

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.
@@ -83,7 +83,8 @@ async def discover_devices(username=None, password=None, additional_broadcasts=N
83
83
 
84
84
  for ip, dev in devices.items():
85
85
  try:
86
- if hasattr(dev, 'device_type') and dev.sys_info['mic_type'] not in UNSUPPORTED_TYPES:
86
+ dev_type = dev.sys_info.get("mic_type") or dev.sys_info.get("type")
87
+ if hasattr(dev, 'device_type') and (dev_type and dev_type not in UNSUPPORTED_TYPES):
87
88
  tasks.append(update_device_info(ip, dev))
88
89
  except KeyError:
89
90
  continue
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.5.3",
4
+ "version": "2.5.4",
5
5
  "description": "Plugin that uses Python-Kasa API to communicate with Kasa Devices.",
6
6
  "license": "MIT",
7
7
  "type": "module",