mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Indentation converted to spaces
This commit is contained in:
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.observers import TomatoDeviceScanner, DeviceTracker, WeatherWatcher
|
||||||
from homeassistant.actors import HueLightControl, LightTrigger
|
from homeassistant.actors import HueLightControl, LightTrigger
|
||||||
from homeassistant.httpinterface import HTTPInterface
|
from homeassistant.httpinterface import HTTPInterface
|
||||||
|
|
||||||
# Read config
|
# Read config
|
||||||
config = SafeConfigParser()
|
config = SafeConfigParser()
|
||||||
config.read("home-assistant.conf")
|
config.read("home-assistant.conf")
|
||||||
@ -15,13 +16,13 @@ statemachine = StateMachine(eventbus)
|
|||||||
|
|
||||||
# Init observers
|
# Init observers
|
||||||
tomato = TomatoDeviceScanner(config.get('tomato','host'), config.get('tomato','username'),
|
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)
|
devicetracker = DeviceTracker(eventbus, statemachine, tomato)
|
||||||
|
|
||||||
weatherwatcher = WeatherWatcher(eventbus, statemachine,
|
weatherwatcher = WeatherWatcher(eventbus, statemachine,
|
||||||
config.get("common","latitude"),
|
config.get("common","latitude"),
|
||||||
config.get("common","longitude"))
|
config.get("common","longitude"))
|
||||||
|
|
||||||
# Init actors
|
# Init actors
|
||||||
LightTrigger(eventbus, statemachine, weatherwatcher, devicetracker, HueLightControl())
|
LightTrigger(eventbus, statemachine, weatherwatcher, devicetracker, HueLightControl())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user