Vallox: Fix missing hass member (#24753)

pull/24764/head
Andre Richter 2019-06-25 19:15:41 +02:00 committed by Paulus Schoutsen
parent 26fc57d1b3
commit fb940e4269
1 changed files with 3 additions and 2 deletions

View File

@ -96,7 +96,7 @@ async def async_setup(hass, config):
client = Vallox(host) client = Vallox(host)
state_proxy = ValloxStateProxy(hass, client) state_proxy = ValloxStateProxy(hass, client)
service_handler = ValloxServiceHandler(client, state_proxy) service_handler = ValloxServiceHandler(hass, client, state_proxy)
hass.data[DOMAIN] = { hass.data[DOMAIN] = {
'client': client, 'client': client,
@ -176,8 +176,9 @@ class ValloxStateProxy:
class ValloxServiceHandler: class ValloxServiceHandler:
"""Services implementation.""" """Services implementation."""
def __init__(self, client, state_proxy): def __init__(self, hass, client, state_proxy):
"""Initialize the proxy.""" """Initialize the proxy."""
self._hass = hass
self._client = client self._client = client
self._state_proxy = state_proxy self._state_proxy = state_proxy