homebridge-kasa-python 2.7.2-beta.6 → 2.7.2

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.
@@ -172,7 +172,11 @@ async def discover_devices(
172
172
 
173
173
  discover_tasks = [discover_on_broadcast(bc) for bc in broadcasts]
174
174
  manual_discover_tasks = [discover_manual_device(host) for host in (manual_devices or [])]
175
- await asyncio.gather(*discover_tasks, *manual_discover_tasks)
175
+ discovery_results = await asyncio.gather(*discover_tasks, *manual_discover_tasks, return_exceptions=True)
176
+
177
+ for discovery_result in discovery_results:
178
+ if isinstance(discovery_result, Exception):
179
+ print(f"Error during discovery tasks: {discovery_result}", file=sys.stderr)
176
180
 
177
181
  all_device_info = {}
178
182
  update_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.7.2-beta.6",
4
+ "version": "2.7.2",
5
5
  "description": "Plugin that uses Python-Kasa API to communicate with Kasa Devices.",
6
6
  "license": "MIT",
7
7
  "type": "module",