Skip to content

Livisi integration never recovers from a sever disconnect #84494

Closed
@dhauwer

Description

The problem

The Livisi integration disconnects from the server every x days and never recovers the connection untill reloading the integration.

What version of Home Assistant Core has the issue?

2022.12.7

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Livisi

Link to integration documentation on our website

https://www.home-assistant.io/integrations/livisi/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2022-12-22 11:47:02.215 DEBUG (MainThread) [homeassistant.components.livisi] Finished fetching Livisi devices data in 1.077 seconds (success: True)
2022-12-22 11:48:02.265 ERROR (MainThread) [homeassistant.components.livisi] Error requesting Livisi devices data: Server disconnected
2022-12-22 11:48:02.267 DEBUG (MainThread) [homeassistant.components.livisi] Finished fetching Livisi devices data in 0.128 seconds (success: False)
2022-12-22 11:49:02.139 ERROR (MainThread) [homeassistant.components.livisi] Unexpected error fetching Livisi devices data: 'NoneType' object is not subscriptable
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 225, in _async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/components/livisi/coordinator.py", line 56, in _async_update_data
    return await self.async_get_devices()
  File "/usr/src/homeassistant/homeassistant/components/livisi/coordinator.py", line 83, in async_get_devices
    return await self.aiolivisi.async_get_devices()
  File "/usr/local/lib/python3.10/site-packages/aiolivisi/aiolivisi.py", line 142, in async_get_devices
    devices = await self.async_send_authorized_request("get", url="device")
  File "/usr/local/lib/python3.10/site-packages/aiolivisi/aiolivisi.py", line 71, in async_send_authorized_request
    ip_address = self._livisi_connection_data["ip_address"]
TypeError: 'NoneType' object is not subscriptable

Additional information

No response

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions