Skip to content

Integration stops after update HA to 2023.6.1 #15

@anthonywalker75

Description

@anthonywalker75

Hello

I recently upgraded my HA to 2023.6.1 and the energy monitor integration seems to have stopped working.

Log entry below:

This error originated from a custom integration.

Logger: homeassistant.helpers.entity
Source: custom_components/lightwaverf_energy/sensor.py:55
Integration: Lightwave Energy Monitor
First occurred: 00:37:13 (58 occurrences)
Last logged: 00:51:13

Update for sensor.electricity_current_usage_w fails
Update for sensor.electricity_energy_today_usage_kwh fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 559, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 786, in async_device_update
await hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/lightwaverf_energy/sensor.py", line 55, in update
sock.bind(("0.0.0.0", 9761))
OSError: [Errno 98] Address in use

It was working prior to the upgrade. Any ideas?

Anthony

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions