Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Error on device update! #9

Open
4 tasks done
gavinpbennett opened this issue Feb 20, 2024 · 0 comments
Open
4 tasks done

Error on device update! #9

gavinpbennett opened this issue Feb 20, 2024 · 0 comments

Comments

@gavinpbennett
Copy link

System Health details

System Information

version core-2024.2.2
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.1
os_name Linux
os_version 6.1.74-haos
arch x86_64
timezone Pacific/Auckland
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4528
Installed Version 1.34.0
Stage running
Available Repositories 1407
Downloaded Repositories 16
Home Assistant Cloud
logged_in true
subscription_expiration July 12, 2024 at 12:00
relayer_connected true
relayer_region ap-southeast-1
remote_enabled true
remote_connected true
alexa_enabled true
google_enabled false
remote_server ap-southeast-1-1.ui.nabu.casa
certificate_status ready
instance_id 64e63f7de5774d2c9353d24c1b96d764
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 11.5
update_channel stable
supervisor_version supervisor-2024.01.1
agent_version 1.6.0
docker_version 24.0.7
disk_total 468.7 GB
disk_used 12.3 GB
healthy true
supported true
board generic-x86-64
supervisor_api ok
version_api ok
installed_addons Network UPS Tools (0.13.0), File editor (5.8.0), Duck DNS (1.15.0), Samba share (12.3.0), Terminal & SSH (9.9.0), Studio Code Server (5.15.0), Mosquitto broker (6.4.0), Home Assistant Google Drive Backup (0.112.1), NGINX Home Assistant SSL proxy (3.8.0), AdGuard Home (5.0.3), ESPHome (2023.12.9), SQLite Web (4.1.2), Cloudflared (5.1.3), OneDrive Backup (2.3)
Dashboards
dashboards 3
resources 1
views 33
mode storage
MercedesME 2020
api_endpoint_reachable ok
websocket_connection_state connected
cars_connected 1
version v0.10.1
Recorder
oldest_recorder_run February 5, 2024 at 18:30
current_recorder_run February 20, 2024 at 15:32
estimated_db_size 711.65 MiB
database_engine sqlite
database_version 3.44.2
Sonoff
version 3.6.0 (8dd8af9)
cloud_online 4 / 7
local_online 4 / 4
Spotify
api_endpoint_reachable ok

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

I have installed the CI for the first time. Restarted, and get the following error in the log.

Reproduction steps

...

Debug logs

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:599
Integration: Sensor (documentation, issues)
First occurred: 15:32:58 (1 occurrences)
Last logged: 15:32:58

contact_energy: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 599, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1261, in async_device_update
    await hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/contact_energy/sensor.py", line 147, in update
    if self._api.login() == False:
       ^^^^^^^^^^^^^^^^^
  File "/config/custom_components/contact_energy/api.py", line 35, in login
    self.refresh_session()
  File "/config/custom_components/contact_energy/api.py", line 57, in refresh_session
    self.get_accounts()
  File "/config/custom_components/contact_energy/api.py", line 75, in get_accounts
    self._contractId = data['accounts'][0]['contracts'][0]['contractId']
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

Diagnostics dump

No response

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant