Pyhass / Hive-Custom-Component

A custom version of the home assistant hive component
MIT License
33 stars 17 forks source link

Doesnt create any new entities [BUG] #141

Open scottivell opened 1 year ago

scottivell commented 1 year ago

Describe the bug The Entities promised by the custom hive component never show. I only see standard ones

To Reproduce I've installed from HACs and Manually. each time removed and rebooted no difference

Expected behaviour A clear and concise description of what you expected to happen.

Screenshots Logger: homeassistant.components.sensor Source: custom_components/hive/init.py:148 Integration: Sensor (documentation, issues) First occurred: 20:59:01 (1 occurrences) Last logged: 20:59:01

Error while setting up hive platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/hive/sensor.py", line 96, in async_setup_entry entities.append(HiveSensorEntity(hive, dev, description)) File "/config/custom_components/hive/sensor.py", line 105, in init super().init(hive, hive_device) File "/config/custom_components/hive/init.py", line 148, in init model=self.device["deviceData"]["model"], KeyError: 'model'

Desktop (please complete the following information): Home Assistant 2023.4.4 Supervisor 2023.04.0 Operating System 10.0 Frontend 20230411.1 - latest

Additional context Add any other context about the problem here.