103
103
hvac_mode_mapping = HVAC_MODE_MAPPING_HEAT ,
104
104
hvac_action_mapping = HVAC_ACTION_MAPPING_HEAT ,
105
105
preset_modes = [PRESET_NONE , PRESET_AWAY , PRESET_BOOST ],
106
- supported_features = ClimateEntityFeature .AUX_HEAT
107
- | ClimateEntityFeature .PRESET_MODE # noqa: W503
106
+ supported_features = ClimateEntityFeature .PRESET_MODE
108
107
| ClimateEntityFeature .TARGET_TEMPERATURE , # noqa: W503
109
108
luxtronik_key = LuxParameter .P0003_MODE_HEATING ,
110
109
# luxtronik_key_current_temperature=LuxCalculation.C0227_ROOM_THERMOSTAT_TEMPERATURE,
@@ -172,7 +171,7 @@ class LuxtronikClimateExtraStoredData(ExtraStoredData):
172
171
_attr_target_temperature : float | None = None
173
172
_attr_hvac_mode : HVACMode | str | None = None
174
173
_attr_preset_mode : str | None = None
175
- _attr_is_aux_heat : bool | None = None
174
+ # _attr_is_aux_heat: bool | None = None
176
175
last_hvac_mode_before_preset : str | None = None
177
176
178
177
def as_dict (self ) -> dict [str , Any ]:
@@ -194,7 +193,7 @@ class LuxtronikThermostat(LuxtronikEntity, ClimateEntity, RestoreEntity):
194
193
_attr_target_temperature_low = 18.0
195
194
_attr_target_temperature_step = 0.5
196
195
197
- _attr_is_aux_heat : bool | None = None
196
+ # _attr_is_aux_heat: bool | None = None
198
197
_attr_hvac_mode : HVACMode | str | None = None
199
198
_attr_preset_mode : str | None = None
200
199
@@ -254,10 +253,10 @@ def _handle_coordinator_update(
254
253
if lux_action is None
255
254
else self .entity_description .hvac_action_mapping [lux_action ]
256
255
)
257
- self ._attr_is_aux_heat = (
258
- None if mode is None else mode == LuxMode .second_heatsource .value
259
- )
260
- if self ._attr_preset_mode == PRESET_NONE or self ._attr_is_aux_heat :
256
+ # self._attr_is_aux_heat = (
257
+ # None if mode is None else mode == LuxMode.second_heatsource.value
258
+ # )
259
+ if self ._attr_preset_mode == PRESET_NONE : # or self._attr_is_aux_heat:
261
260
self ._last_hvac_mode_before_preset = None
262
261
key = self .entity_description .luxtronik_key_current_temperature
263
262
if isinstance (key , str ):
@@ -339,27 +338,27 @@ async def async_set_preset_mode(self, preset_mode: str) -> None:
339
338
lux_mode = LuxMode .off .value
340
339
await self ._async_set_lux_mode (lux_mode )
341
340
342
- async def async_turn_aux_heat_on (self ) -> None :
343
- """Turn auxiliary heater on."""
344
- self ._attr_is_aux_heat = True
345
- if self ._last_hvac_mode_before_preset is None :
346
- self ._last_hvac_mode_before_preset = self ._attr_hvac_mode
347
- await self ._async_set_lux_mode (LuxMode .second_heatsource .value )
348
-
349
- async def async_turn_aux_heat_off (self ) -> None :
350
- """Turn auxiliary heater off."""
351
- self ._attr_is_aux_heat = False
352
- if (self ._last_hvac_mode_before_preset is None ) or (
353
- not self ._last_hvac_mode_before_preset in HVAC_PRESET_MAPPING
354
- ):
355
- await self ._async_set_lux_mode (LuxMode .automatic .value )
356
- else :
357
- lux_mode = [
358
- k
359
- for k , v in HVAC_PRESET_MAPPING .items ()
360
- if v == self ._last_hvac_mode_before_preset
361
- ][0 ]
362
- await self ._async_set_lux_mode (lux_mode )
341
+ # async def async_turn_aux_heat_on(self) -> None:
342
+ # """Turn auxiliary heater on."""
343
+ # self._attr_is_aux_heat = True
344
+ # if self._last_hvac_mode_before_preset is None:
345
+ # self._last_hvac_mode_before_preset = self._attr_hvac_mode
346
+ # await self._async_set_lux_mode(LuxMode.second_heatsource.value)
347
+
348
+ # async def async_turn_aux_heat_off(self) -> None:
349
+ # """Turn auxiliary heater off."""
350
+ # self._attr_is_aux_heat = False
351
+ # if (self._last_hvac_mode_before_preset is None) or (
352
+ # not self._last_hvac_mode_before_preset in HVAC_PRESET_MAPPING
353
+ # ):
354
+ # await self._async_set_lux_mode(LuxMode.automatic.value)
355
+ # else:
356
+ # lux_mode = [
357
+ # k
358
+ # for k, v in HVAC_PRESET_MAPPING.items()
359
+ # if v == self._last_hvac_mode_before_preset
360
+ # ][0]
361
+ # await self._async_set_lux_mode(lux_mode)
363
362
364
363
@property
365
364
def extra_restore_state_data (self ) -> LuxtronikClimateExtraStoredData :
@@ -368,6 +367,6 @@ def extra_restore_state_data(self) -> LuxtronikClimateExtraStoredData:
368
367
self ._attr_target_temperature ,
369
368
self ._attr_hvac_mode ,
370
369
self ._attr_preset_mode ,
371
- self ._attr_is_aux_heat ,
370
+ # self._attr_is_aux_heat,
372
371
self ._last_hvac_mode_before_preset ,
373
372
)
0 commit comments