We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc04d77 commit 1f82797Copy full SHA for 1f82797
1 file changed
custom_components/luxtronik/climate.py
@@ -329,8 +329,11 @@ def _handle_coordinator_update(
329
# )
330
if self._attr_preset_mode == PRESET_NONE: # or self._attr_is_aux_heat:
331
self._last_hvac_mode_before_preset = None
332
+
333
key = self.entity_description.luxtronik_key_current_temperature
- if key.startswith("sensor."):
334
+ if key is None:
335
+ self._attr_current_temperature = None
336
+ elif key.startswith("sensor."):
337
temp = self.hass.states.get(key)
338
self._attr_current_temperature = state_as_number_or_none(temp, 0.0)
339
elif key != LuxCalculation.UNSET:
0 commit comments