mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
Specifying Hue host is optional. PHue already saves it in config
This commit is contained in:
parent
986d72f523
commit
ec0ca6ac38
@ -19,9 +19,9 @@ class HueTrigger(object):
|
|||||||
self.statemachine = statemachine
|
self.statemachine = statemachine
|
||||||
self.weather = weather
|
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.lights = self.bridge.get_light_objects()
|
||||||
self.logger = logging.getLogger("HueTrigger")
|
self.logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
# Track home coming of each seperate device
|
# Track home coming of each seperate device
|
||||||
for category in device_tracker.device_state_categories():
|
for category in device_tracker.device_state_categories():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user