albaintor / homeassistant_electrolux_status

Get the status from your Electrolux Care devices
MIT License
90 stars 23 forks source link

[BUG] Error on HA shutdown. #58

Closed miguelangel-nubla closed 1 month ago

miguelangel-nubla commented 3 months ago

When HA is shutdown:

2024-08-02 12:03:59.995 ERROR (MainThread) [homeassistant.core] Error running job: <Job onetime listen homeassistant_stop <bound method OneAppApi.close of <pyelectroluxocp.oneAppApi.OneAppApi object at 0x7fb2b2d8cf20>> HassJobType.Callback <_OneTimeListener pyelectroluxocp.oneAppApi:<bound method OneAppApi.close of <pyelectroluxocp.oneAppApi.OneAppApi object at 0x7fb2b2d8cf20>>>>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1559, in async_fire_internal
    self._hass.async_run_hass_job(job, event)
  File "/usr/src/homeassistant/homeassistant/core.py", line 938, in async_run_hass_job
    hassjob.target(*args)
  File "/usr/src/homeassistant/homeassistant/core.py", line 1420, in __call__
    self.hass.async_run_hass_job(self.listener_job, event)
  File "/usr/src/homeassistant/homeassistant/core.py", line 941, in async_run_hass_job
    return self._async_add_hass_job(hassjob, *args, background=background)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 757, in _async_add_hass_job
    hassjob.target(*args), name=hassjob.name, loop=self.loop
    ^^^^^^^^^^^^^^^^^^^^^
TypeError: OneAppApi.close() takes 1 positional argument but 2 were given