Pass hass object to ServiceRegistry constructor (#4570)

This commit is contained in:
Paulus Schoutsen 2016-11-24 14:02:39 -08:00 committed by GitHub
parent 2a6c0cfc17
commit 42c99b0ccb
2 changed files with 17 additions and 20 deletions

View file

@ -131,7 +131,7 @@ class HomeAssistant(ha.HomeAssistant):
self._pending_sheduler = None
self.bus = EventBus(remote_api, self)
self.services = ha.ServiceRegistry(self.bus, self.add_job, self.loop)
self.services = ha.ServiceRegistry(self)
self.states = StateMachine(self.bus, self.loop, self.remote_api)
self.config = ha.Config()
# This is a dictionary that any component can store any data on.