Vallox: Fix missing hass member (#24753)
parent
26fc57d1b3
commit
fb940e4269
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue