mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 05:37:44 +00:00
Dont turn HVAC off with preset in Teslemetry (#124604)
Dont turn HVAC off with preset
This commit is contained in:
parent
6e727a49bf
commit
3035588dfa
@ -168,9 +168,8 @@ class TeslemetryClimateEntity(TeslemetryVehicleEntity, ClimateEntity):
|
||||
)
|
||||
)
|
||||
self._attr_preset_mode = preset_mode
|
||||
if preset_mode == self._attr_preset_modes[0]:
|
||||
self._attr_hvac_mode = HVACMode.OFF
|
||||
else:
|
||||
if preset_mode != self._attr_preset_modes[0]:
|
||||
# Changing preset mode will also turn on climate
|
||||
self._attr_hvac_mode = HVACMode.HEAT_COOL
|
||||
self.async_write_ha_state()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user