jontofront / ecoNET-300-Home-Assistant-Integration

ecoNET 300 integration to HA
11 stars 4 forks source link

master-1.0.0-beta errors and can't set temperature #55

Closed jontofront closed 10 months ago

jontofront commented 10 months ago

2024-01-28 21:34:55.512 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform econet300 Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities await asyncio.gather(*tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 614, in _async_add_entity if self.config_entry and (device_info := entity.device_info): ^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/entity.py", line 110, in device_info identifiers={(DOMAIN, f"{self._api.uid()}-mixer-{self._idx}")}, ^^^^^^^^^ AttributeError: 'MixerSensor' object has no attribute '_api' 2024-01-28 21:34:55.653 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up econet300 platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 368, in _async_setup_platform await asyncio.gather(*pending) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities await asyncio.gather(*tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 614, in _async_add_entity if self.config_entry and (device_info := entity.device_info): ^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/entity.py", line 110, in device_info identifiers={(DOMAIN, f"{self._api.uid()}-mixer-{self._idx}")}, ^^^^^^^^^ AttributeError: 'MixerSensor' object has no attribute '_api'

image

image

AkiraJager commented 10 months ago

@jontofront updated BRANCH