Bootstrapper now does not need a host option to load Hue

This commit is contained in:
Paulus Schoutsen 2013-10-31 18:30:45 -07:00
parent cd0b493dd3
commit 054d14d5de

View File

@ -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))