Skip to content

Commit 1f82797

Browse files
committed
Fix for #524
1 parent fc04d77 commit 1f82797

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

custom_components/luxtronik/climate.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,11 @@ def _handle_coordinator_update(
329329
# )
330330
if self._attr_preset_mode == PRESET_NONE: # or self._attr_is_aux_heat:
331331
self._last_hvac_mode_before_preset = None
332+
332333
key = self.entity_description.luxtronik_key_current_temperature
333-
if key.startswith("sensor."):
334+
if key is None:
335+
self._attr_current_temperature = None
336+
elif key.startswith("sensor."):
334337
temp = self.hass.states.get(key)
335338
self._attr_current_temperature = state_as_number_or_none(temp, 0.0)
336339
elif key != LuxCalculation.UNSET:

0 commit comments

Comments
 (0)