mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +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
|
||||
# Light control
|
||||
if config.has_section("hue") and config.has_option("hue", "host"):
|
||||
light_control = actors.HueLightControl(config.get("hue", "host"))
|
||||
if config.has_section("hue"):
|
||||
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))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user