core/homeassistant/components/fritzbox
Sven Sager 74931071de
Use scheduled current preset (if set), when setting HVAC mode in AVM Fritz!Smarthome (#126044)
* Use temperature of current preset when set fritz HVAC mode to HEAT

If the HVAC mode of the Fritzbox thermostats changes from `HVACMode.OFF`
to `HVAMode.HEAT`, the current preset (COMFORT / ECO) should be
observed. Depending on the status of the current preset, the set
temperature of comfort / eco is set as the new temperature.

* fixup do not use value_scheduled_preset

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

* Add current_preset value to test_set_hvac_mode

The current_preset parameter allows the mock to be set to an active
preset. When setting HVACMode.HEAT, the respective temperature of the
ECO/COMFORT preset should be set.

* fixup Use the updated value_scheduled_preset function

To distinguish which temperature should be used when setting the
`HVAMode.HEAT`, `value_schedules_preset` is now used again, which has
been updated since the first commit. If no schedule is active, the
comfort_temperature is used. Otherwise, the respective temperature of
the current preset.

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2024-09-30 16:29:39 +02:00
..
__init__.py Move fritzbox base entity to separate module (#126482) 2024-09-23 12:50:51 +02:00
binary_sensor.py Move fritzbox base entity to separate module (#126482) 2024-09-23 12:50:51 +02:00
button.py Move fritzbox base entity to separate module (#126482) 2024-09-23 12:50:51 +02:00
climate.py Use scheduled current preset (if set), when setting HVAC mode in AVM Fritz!Smarthome (#126044) 2024-09-30 16:29:39 +02:00
config_flow.py Use ConfigFlow.has_matching_flow to deduplicate fritzbox flows (#126891) 2024-09-27 11:44:59 +02:00
const.py
coordinator.py
cover.py Move fritzbox base entity to separate module (#126482) 2024-09-23 12:50:51 +02:00
diagnostics.py
entity.py Move fritzbox base entity to separate module (#126482) 2024-09-23 12:50:51 +02:00
icons.json
light.py Move fritzbox base entity to separate module (#126482) 2024-09-23 12:50:51 +02:00
manifest.json
model.py
sensor.py Move fritzbox base entity to separate module (#126482) 2024-09-23 12:50:51 +02:00
strings.json
switch.py Move fritzbox base entity to separate module (#126482) 2024-09-23 12:50:51 +02:00