mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Correctly set property decorator on preset modes (#25151)
This commit is contained in:
parent
08f12750f1
commit
0a8b68fd4d
@ -135,6 +135,7 @@ class FritzboxThermostat(ClimateDevice):
|
|||||||
if self._target_temperature == self._eco_temperature:
|
if self._target_temperature == self._eco_temperature:
|
||||||
return PRESET_ECO
|
return PRESET_ECO
|
||||||
|
|
||||||
|
@property
|
||||||
def preset_modes(self):
|
def preset_modes(self):
|
||||||
"""Return supported preset modes."""
|
"""Return supported preset modes."""
|
||||||
return [PRESET_ECO, PRESET_COMFORT]
|
return [PRESET_ECO, PRESET_COMFORT]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user