Specifying Hue host is optional. PHue already saves it in config

This commit is contained in:
Paulus Schoutsen 2013-09-21 13:43:13 -07:00
parent 986d72f523
commit ec0ca6ac38
1 changed files with 2 additions and 2 deletions

View File

@ -19,9 +19,9 @@ class HueTrigger(object):
self.statemachine = statemachine
self.weather = weather
self.bridge = Bridge(config.get("hue","host"))
self.bridge = Bridge(config.get("hue","host") if config.has_option("hue","host") else None)
self.lights = self.bridge.get_light_objects()
self.logger = logging.getLogger("HueTrigger")
self.logger = logging.getLogger(__name__)
# Track home coming of each seperate device
for category in device_tracker.device_state_categories():