Indentation converted to spaces
parent
561fcd3d15
commit
5d4136cf29
7
start.py
7
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())
|
||||
|
|
Loading…
Reference in New Issue