Hive-Custom-Component icon indicating copy to clipboard operation
Hive-Custom-Component copied to clipboard

[BUG]

Open tempus2016 opened this issue 3 years ago • 3 comments

Describe the bug

Logger: homeassistant.helpers.entity
Source: components/hive/switch.py:67
First occurred: 20:42:07 (1 occurrences)
Last logged: 20:42:07

Update for switch.downstairs_heat_on_demand fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 527, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 722, in async_device_update
    raise exc
  File "/usr/src/homeassistant/homeassistant/components/hive/switch.py", line 67, in async_update
    await self.hive.session.updateData(self.device)
  File "/usr/local/lib/python3.10/site-packages/apyhiveapi/session.py", line 329, in updateData
    await self.getDevices(device["hiveID"])
  File "/usr/local/lib/python3.10/site-packages/apyhiveapi/session.py", line 456, in getDevices
    self.config.homeID = api_resp_p[hiveType]["homes"][0]["id"]
IndexError: list index out of range

Home Assistant 2022.11.1
Supervisor 2022.10.2
Operating System 9.3
Frontend 20221102.1 - latest

tempus2016 avatar Nov 08 '22 20:11 tempus2016

@tempus2016 Are you using the main hive Owner account?

KJonline avatar Nov 11 '22 19:11 KJonline

@tempus2016 Are you using the main hive Owner account?

Yes

tempus2016 avatar Nov 11 '22 19:11 tempus2016

I am having a similar problem

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/hive/init.py", line 89, in async_setup_entry File "/usr/local/lib/python3.10/site-packages/apyhiveapi/session.py", line 510, in startSession return await self.createDevices() File "/usr/local/lib/python3.10/site-packages/apyhiveapi/session.py", line 534, in createDevices eval("self." + code) File "", line 1, in File "/usr/local/lib/python3.10/site-packages/apyhiveapi/session.py", line 131, in addList device = self.helper.getDeviceData(data) File "/usr/local/lib/python3.10/site-packages/apyhiveapi/helper/hive_helper.py", line 98, in getDeviceData device = self.session.data.devices[product["props"]["trvs"][0]] IndexError: list index out of range

spants avatar Jan 26 '23 17:01 spants