ps: Add a global config object to Home Assistant
This commit is contained in:
parent
569b15d790
commit
9b643d57f0
23 changed files with 224 additions and 173 deletions
|
@ -51,7 +51,8 @@ def setup_bridge(host, hass, add_devices_callback):
|
|||
|
||||
try:
|
||||
bridge = phue.Bridge(
|
||||
host, config_file_path=hass.get_config_path(PHUE_CONFIG_FILE))
|
||||
host,
|
||||
config_file_path=hass.config.get_config_path(PHUE_CONFIG_FILE))
|
||||
except ConnectionRefusedError: # Wrong host was given
|
||||
_LOGGER.exception("Error connecting to the Hue bridge at %s", host)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue