mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Code cleanup and reorg
This commit is contained in:
3
start.py
3
start.py
@@ -1,11 +1,12 @@
|
||||
from app.HomeAssistant import HomeAssistant
|
||||
|
||||
from app.actor.HueLightControl import HueLightControl
|
||||
from app.observer.TomatoDeviceScanner import TomatoDeviceScanner
|
||||
|
||||
ha = HomeAssistant()
|
||||
|
||||
ha.setup_device_tracker(TomatoDeviceScanner(ha.get_config()))
|
||||
ha.setup_hue_trigger()
|
||||
ha.setup_light_trigger(HueLightControl(ha.get_config()))
|
||||
ha.setup_http_interface()
|
||||
|
||||
ha.start()
|
||||
|
||||
Reference in New Issue
Block a user