Home Assistant Community Store
GitHub API | ok
-- | --
GitHub Content | ok
GitHub Web | ok
HACS Data | ok
GitHub API Calls Remaining | 4975
Installed Version | 2.0.0
Stage | running
Available Repositories | 1401
Downloaded Repositories | 25
AccuWeather
can_reach_server | ok
-- | --
remaining_requests | 29
Dashboards
dashboards | 2
-- | --
resources | 14
views | 14
mode | storage
Recorder
oldest_recorder_run | September 1, 2024 at 6:19 AM
-- | --
current_recorder_run | September 2, 2024 at 10:33 AM
estimated_db_size | 800.25 MiB
database_engine | mysql
database_version | 10.11.9
Checklist
[X] I have enabled debug logging for my installation.
[X] I have filled out the issue template to the best of my ability.
[X] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
[X] This issue is not a duplicate issue of any previous issues..
Describe the issue
Exception thrown while calculating estimate. (if it matters, I'm a customer of Pazgas, not IEC directly anymore)
Reproduction steps
Install 0.33.0
Restart
Debug logs
2024-09-02 10:34:17.689 WARNING (MainThread) [iec_api.commons] Failed call: (Code 401): Unauthorized
2024-09-02 10:34:17.702 ERROR (MainThread) [custom_components.iec.coordinator] Unexpected error fetching Iec data
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 354, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/iec/coordinator.py", line 423, in _async_update_data
total_kva_price, estimated_kwh_consumption = await self._estimate_bill(contract_id, device.device_number,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/iec/coordinator.py", line 648, in _estimate_bill
last_meter_read = last_meter_reading.reading
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'reading'
System Health details
System Information
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok HACS Data | ok GitHub API Calls Remaining | 4975 Installed Version | 2.0.0 Stage | running Available Repositories | 1401 Downloaded Repositories | 25AccuWeather
can_reach_server | ok -- | -- remaining_requests | 29Dashboards
dashboards | 2 -- | -- resources | 14 views | 14 mode | storageRecorder
oldest_recorder_run | September 1, 2024 at 6:19 AM -- | -- current_recorder_run | September 2, 2024 at 10:33 AM estimated_db_size | 800.25 MiB database_engine | mysql database_version | 10.11.9Checklist
Describe the issue
Exception thrown while calculating estimate. (if it matters, I'm a customer of Pazgas, not IEC directly anymore)
Reproduction steps
Debug logs