Skip to content

index out of range #13

@jebeke65

Description

@jebeke65

when using the smappee hacs integration, which uses pysmappee, below is seen in the logs

Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/pysmappee/mqtt.py", line 106, in _on_message
self._service_location._update_power_data(power_data=power_data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pysmappee/servicelocation.py", line 544, in _update_power_data
measurement.update_active(active=active_power_data)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pysmappee/measurement.py", line 53, in update_active
channel['active'] = active[channel.get(index)]
~~~~~~^^^^^^^^^^^^^^^^^^^^
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions