diff --git a/start.py b/start.py index 68a590571bb..c2b9cebfa7e 100644 --- a/start.py +++ b/start.py @@ -5,6 +5,7 @@ from homeassistant import StateMachine, EventBus, start_home_assistant from homeassistant.observers import TomatoDeviceScanner, DeviceTracker, WeatherWatcher from homeassistant.actors import HueLightControl, LightTrigger from homeassistant.httpinterface import HTTPInterface + # Read config config = SafeConfigParser() config.read("home-assistant.conf") @@ -15,13 +16,13 @@ statemachine = StateMachine(eventbus) # Init observers tomato = TomatoDeviceScanner(config.get('tomato','host'), config.get('tomato','username'), - config.get('tomato','password'), config.get('tomato','http_id')) + config.get('tomato','password'), config.get('tomato','http_id')) devicetracker = DeviceTracker(eventbus, statemachine, tomato) weatherwatcher = WeatherWatcher(eventbus, statemachine, - config.get("common","latitude"), - config.get("common","longitude")) + config.get("common","latitude"), + config.get("common","longitude")) # Init actors LightTrigger(eventbus, statemachine, weatherwatcher, devicetracker, HueLightControl())