deCONZ - Increase bridge discovery robustness in config flow (#26911)

This commit is contained in:
Robert Svensson authored and GitHub committed 2019-09-25 21:50:14 +02:00
1 parent cbbdb95003
commit cff7fd0ef3
2 files changed
+35 -2

No files matched your search

@@ -90,7 +90,7 @@ class DeconzFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
with async_timeout.timeout(10):
self.bridges = await async_discovery(session)
except asyncio.TimeoutError:
except (asyncio.TimeoutError, ResponseError):
self.bridges = []
if len(self.bridges) == 1: