Closed AlexW75 closed 8 months ago
Logger: homeassistant.components.switch Source: helpers/entity_platform.py:352 Integration: Schalter (documentation, issues) First occurred: 22:57:46 (1 occurrences) Last logged: 22:57:46
Error while setting up bosch_shc platform for switch Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 352, in _async_setup_platform await asyncio.gather(pending) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 533, in async_add_entities await asyncio.gather(tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 782, in _async_add_entity await entity.add_to_platform_finish() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1325, in add_to_platform_finish self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 989, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1110, in _async_write_ha_state state, attr, capabilities, shadowed_attr = self.async_calculate_state() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1047, in async_calculate_state state = self._stringify_state(available) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 995, in _stringify_state if (state := self.state) is None: ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1600, in state if (is_on := self.is_on) is None: ^^^^^^^^^^ File "/config/custom_components/bosch_shc/switch.py", line 457, in is_on getattr(self._device, self.entity_description.on_key) File "/usr/local/lib/python3.12/site-packages/boschshcpy/models_impl.py", line 481, in silentmode return self._silentmode_service.mode ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'mode'
Logger: homeassistant.components.switch Source: helpers/entity_platform.py:533 Integration: Schalter (documentation, issues) First occurred: 22:57:46 (1 occurrences) Last logged: 22:57:46
Error adding entities for domain switch with platform bosch_shc Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 533, in async_add_entities await asyncio.gather(*tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 782, in _async_add_entity await entity.add_to_platform_finish() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1325, in add_to_platform_finish self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 989, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1110, in _async_write_ha_state state, attr, capabilities, shadowed_attr = self.async_calculate_state() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1047, in async_calculate_state state = self._stringify_state(available) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 995, in _stringify_state if (state := self.state) is None: ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1600, in state if (is_on := self.is_on) is None: ^^^^^^^^^^ File "/config/custom_components/bosch_shc/switch.py", line 457, in is_on getattr(self._device, self.entity_description.on_key) File "/usr/local/lib/python3.12/site-packages/boschshcpy/models_impl.py", line 481, in silentmode return self._silentmode_service.mode ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'mode'
Thanks :)
Not yet solved, the PR is leading to the error. Try to fix this tonight, when I’m at home.
Not all Thermostats support the silentmode. Fixed this in the current release.
Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: homeassistant Source: custom_components/bosch_shc/switch.py:457 Integration: Bosch SHC (documentation, issues) First occurred: 22:57:46 (22 occurrences) Last logged: 22:58:11
Error doing job: Task exception was never retrieved Error doing job: Exception in callback Entity.async_write_ha_state() Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1465, in _async_registry_updated self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 989, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1110, in _async_write_ha_state state, attr, capabilities, shadowed_attr = self.async_calculate_state() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1047, in async_calculate_state state = self._stringify_state(available) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 995, in _stringify_state if (state := self.state) is None: ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1600, in state if (is_on := self.is_on) is None: ^^^^^^^^^^ File "/config/custom_components/bosch_shc/switch.py", line 457, in is_on getattr(self._device, self.entity_description.on_key) File "/usr/local/lib/python3.12/site-packages/boschshcpy/models_impl.py", line 481, in silentmode return self._silentmode_service.mode ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'mode'