Skip to content

Commit 8e78c46

Browse files
committed
Fixed api not being replaced #28
1 parent 919d5de commit 8e78c46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/wemportal/coordinator.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(
3232
update_interval=update_interval,
3333
)
3434
self.api = api
35-
self.has = hass
35+
self.hass = hass
3636
self.config_entry = config_entry
3737

3838
async def _async_update_data(self):
@@ -50,7 +50,7 @@ async def _async_update_data(self):
5050
self.config_entry.data.get(CONF_PASSWORD),
5151
self.config_entry.options,
5252
)
53-
api = new_api
53+
self.api = new_api
5454
except Exception:
5555
pass
5656
raise UpdateFailed from exc

0 commit comments

Comments
 (0)