mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
parent
4e03176634
commit
d333593aa6
@ -192,7 +192,7 @@ class HueBridge(object):
|
|||||||
self.bridge = phue.Bridge(
|
self.bridge = phue.Bridge(
|
||||||
self.host,
|
self.host,
|
||||||
config_file_path=self.hass.config.path(self.filename))
|
config_file_path=self.hass.config.path(self.filename))
|
||||||
except ConnectionRefusedError: # Wrong host was given
|
except (ConnectionRefusedError, OSError): # Wrong host was given
|
||||||
_LOGGER.error("Error connecting to the Hue bridge at %s",
|
_LOGGER.error("Error connecting to the Hue bridge at %s",
|
||||||
self.host)
|
self.host)
|
||||||
return
|
return
|
||||||
@ -201,6 +201,9 @@ class HueBridge(object):
|
|||||||
self.host)
|
self.host)
|
||||||
self.request_configuration()
|
self.request_configuration()
|
||||||
return
|
return
|
||||||
|
except Exception: # pylint: disable=broad-except
|
||||||
|
_LOGGER.exception("Unknown error connecting with Hue bridge at %s",
|
||||||
|
self.host)
|
||||||
|
|
||||||
# If we came here and configuring this host, mark as done
|
# If we came here and configuring this host, mark as done
|
||||||
if self.config_request_id:
|
if self.config_request_id:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user