homebridge-kasa-python 2.2.4 → 2.2.5

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.
@@ -31,7 +31,6 @@ async def discover_devices(username=None, password=None):
31
31
  app.logger.debug('Starting device discovery...')
32
32
  try:
33
33
  devices = await Discover.discover(username=username, password=password)
34
- app.logger.debug(f'Discovered devices: {devices}')
35
34
  except Exception as e:
36
35
  app.logger.error(f'Error during device discovery: {str(e)}')
37
36
  app.logger.error(f'Traceback: {traceback.format_exc()}')
@@ -40,8 +39,9 @@ async def discover_devices(username=None, password=None):
40
39
  all_device_info = {}
41
40
  tasks = []
42
41
  for ip, dev in devices.items():
43
- app.logger.debug(f'Creating update task for device at {ip} with device: {dev}')
44
- tasks.append(update_device_info(ip, dev))
42
+ if dev.device_type:
43
+ app.logger.debug(f'Creating update task for device at {ip} with device: {dev}')
44
+ tasks.append(update_device_info(ip, dev))
45
45
 
46
46
  try:
47
47
  results = await asyncio.gather(*tasks)
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.2.4",
4
+ "version": "2.2.5",
5
5
  "description": "Plugin that uses Python-Kasa API to communicate with Kasa Devices.",
6
6
  "license": "MIT",
7
7
  "type": "module",