mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Bootstrapper now does not need a host option to load Hue
This commit is contained in:
parent
cd0b493dd3
commit
054d14d5de
@ -73,8 +73,11 @@ def from_config_file(config_path):
|
|||||||
|
|
||||||
# Init actors
|
# Init actors
|
||||||
# Light control
|
# Light control
|
||||||
if config.has_section("hue") and config.has_option("hue", "host"):
|
if config.has_section("hue"):
|
||||||
light_control = actors.HueLightControl(config.get("hue", "host"))
|
if config.has_option("hue", "host"):
|
||||||
|
light_control = actors.HueLightControl(config.get("hue", "host"))
|
||||||
|
else:
|
||||||
|
light_control = actors.HueLightControl()
|
||||||
|
|
||||||
statusses.append(("Light Control - Hue", light_control.success_init))
|
statusses.append(("Light Control - Hue", light_control.success_init))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user