Skip to content

Error in Log File #89

Description

@Kaibob2

System Health details

System Information

version core-2025.11.2
installation_type Home Assistant OS
dev false
hassio true
docker true
container_arch amd64
user root
virtualenv false
python_version 3.13.9
os_name Linux
os_version 6.12.51-haos
arch x86_64
timezone Europe/Berlin
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 5000
Installed Version 2.0.5
Stage running
Available Repositories 2456
Downloaded Repositories 50
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 16.3
update_channel stable
supervisor_version supervisor-2025.11.2
agent_version 1.7.2
docker_version 28.3.3
disk_total 234.0 GB
disk_used 46.6 GB
nameservers 192.168.0.1
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board generic-x86-64
supervisor_api ok
version_api ok
installed_addons Advanced SSH & Web Terminal (22.0.1), ESPHome Device Builder (2025.10.5), File editor (5.8.0), Glances (0.21.1), Mosquitto broker (6.5.2), Node-RED (20.2.2), Samba Backup (5.2.0), Samba share (12.5.4), Simple Scheduler (3.2.1), Studio Code Server (6.0.0), Terminal & SSH (9.20.1), Frigate (0.16.2), Nginx Proxy Manager (2.1.0), Increase Swap (1.1.3), OpenThread Border Router (2.15.1), Matter Server (8.1.1), hm2mqtt (1.5.2), SQLite Web (5.0.0), AdGuard Home (6.0.1), SONOFF Dongle Flasher (1.2.3), DbStats (0.5.12)
Dashboards
dashboards 1
resources 44
views 51
mode storage
Recorder
oldest_recorder_run 3. November 2025 um 07:32
current_recorder_run 17. November 2025 um 12:12
estimated_db_size 1090.21 MiB
database_engine sqlite
database_version 3.49.2

Checklist

  • I have filled out the issue template to the best of my ability.
  • I have enabled debug logging for my installation.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

I have the below error entry in my log file since I deleted a sensor.
The sensor itself is gone, but the error persists.
All other sensors created by this integration work perfectly.
Is there anything I can do to fix this?

Error while setting up utility_meter_next_gen platform for sensor: unhashable type: 'list'

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 451, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/config/custom_components/utility_meter_next_gen/sensor.py", line 307, in async_setup_entry
    meter_sensor = UtilityMeterSensor(
        calibrate_calc_value=calibrate_calc_value,
    ...<16 lines>...
        unique_id=entry_id,
    )
  File "/config/custom_components/utility_meter_next_gen/sensor.py", line 649, in __init__
    self._cron_pattern = PERIOD2CRON[meter_type].format(
                         ~~~~~~~~~~~^^^^^^^^^^^^
TypeError: unhashable type: 'list'

Reproduction steps

Not exactly sure what led to this situation, so no idea how to reproduce

Debug logs

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 451, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/config/custom_components/utility_meter_next_gen/sensor.py", line 307, in async_setup_entry
    meter_sensor = UtilityMeterSensor(
        calibrate_calc_value=calibrate_calc_value,
    ...<16 lines>...
        unique_id=entry_id,
    )
  File "/config/custom_components/utility_meter_next_gen/sensor.py", line 649, in __init__
    self._cron_pattern = PERIOD2CRON[meter_type].format(
                         ~~~~~~~~~~~^^^^^^^^^^^^

Diagnostics dump

No response

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