mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
read in allow_unreachable
config value
This commit is contained in:
parent
d28116f2bf
commit
5abff70a87
@ -53,6 +53,8 @@ def _find_host_from_config(hass, filename=PHUE_CONFIG_FILE):
|
|||||||
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
||||||
"""Setup the Hue lights."""
|
"""Setup the Hue lights."""
|
||||||
filename = config.get(CONF_FILENAME, PHUE_CONFIG_FILE)
|
filename = config.get(CONF_FILENAME, PHUE_CONFIG_FILE)
|
||||||
|
allow_unreachable = config.get('allow_unreachable', False)
|
||||||
|
|
||||||
if discovery_info is not None:
|
if discovery_info is not None:
|
||||||
host = urlparse(discovery_info[1]).hostname
|
host = urlparse(discovery_info[1]).hostname
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user