Skip to content

After updating to 0.0.54, integration has no entities #308

@doron1

Description

@doron1

System Health details

System Information

version core-2026.2.1
installation_type Home Assistant OS
dev false
hassio true
docker true
container_arch aarch64
user root
virtualenv false
python_version 3.13.11
os_name Linux
os_version 6.12.47-haos-raspi
arch aarch64
timezone Asia/Jerusalem
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 4987
Installed Version 2.0.5
Stage running
Available Repositories 2679
Downloaded Repositories 16
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 17.0
update_channel stable
supervisor_version supervisor-2026.01.1
agent_version 1.8.1
docker_version 29.1.3
disk_total 916.9 GB
disk_used 35.2 GB
nameservers REDACTED
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board yellow
supervisor_api ok
version_api ok
installed_addons Mosquitto broker (6.5.2), Studio Code Server (6.0.1), Advanced SSH & Web Terminal (23.0.2), ESPHome Device Builder (2026.1.4), WireGuard (0.13.0), File editor (5.8.0), Scrypted (v0.143.0-noble-full), chrony (6.0.1), Hikvision Doorbell (3.0.27), Bind DNS Server (20260205053030), MQTT Explorer (browser-1.0.3), Music Assistant (2.7.6), Piper (2.2.2), Whisper (3.1.0)
Dashboards
dashboards 13
resources 13
views 11
mode storage
Network Configuration

REDACTED

Recorder
oldest_recorder_run January 25, 2026 at 11:34
current_recorder_run February 9, 2026 at 16:49
estimated_db_size 1321.39 MiB
database_engine sqlite
database_version 3.49.2

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • 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

Integration was working fine for a long while. Updated to 0.0.54. Deleted and re-added the entry a few times. Each time it completes with a "success" message but no entities under the entry. Debug log shows issues.

Reproduction steps

  1. Add an entry, provide OTP
  2. Entry added "successfully", but no entities

...

Debug logs

2026-02-09 17:02:11.853 ERROR (MainThread) [custom_components.iec.coordinator] Failed updating data. Exception: 'RemoteReadingResponse' object has no attribute 'total_import'
2026-02-09 17:02:11.855 ERROR (MainThread) [custom_components.iec.coordinator] Traceback (most recent call last):
  File "/config/custom_components/iec/coordinator.py", line 821, in _async_update_data
    return await self._update_data()
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/iec/coordinator.py", line 725, in _update_data
    and two_days_ago_reading.total_import
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'RemoteReadingResponse' object has no attribute 'total_import'
2026-02-09 17:02:11.855 DEBUG (MainThread) [custom_components.iec.coordinator] Finished fetching Iec data in 31.302 seconds (success: False)
2026-02-09 17:02:11.856 ERROR (MainThread) [custom_components.iec] Failed to fetch initial data: Failed Updating IEC data
2026-02-09 17:02:11.856 INFO (MainThread) [homeassistant.components.sensor] Setting up iec.sensor
2026-02-09 17:02:11.856 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up iec platform for sensor: 'NoneType' object has no attribute 'keys'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 455, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/config/custom_components/iec/sensor.py", line 385, in async_setup_entry
    lambda key: key != STATICS_DICT_NAME, list(coordinator.data.keys())
                                               ^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'keys'
2026-02-09 17:02:11.857 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up iec.binary_sensor
2026-02-09 17:02:11.858 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up iec platform for binary_sensor: 'NoneType' object has no attribute 'keys'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 455, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/config/custom_components/iec/binary_sensor.py", line 74, in async_setup_entry
    list(coordinator.data.keys()),
         ^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'keys'

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