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.
- package/dist/python/kasaApi.py +5 -1
- package/package.json +1 -1
package/dist/python/kasaApi.py
CHANGED
|
@@ -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