Replace Climate HVAC_MODE_* constants with HVACMode enum (#70286)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
0dc426e2c4
commit
a22f36178f
8 changed files with 87 additions and 86 deletions
|
@ -230,7 +230,7 @@ class EsphomeClimateEntity(EsphomeEntity[ClimateInfo, ClimateState], ClimateEnti
|
|||
return features
|
||||
|
||||
@esphome_state_property
|
||||
def hvac_mode(self) -> str | None: # type: ignore[override]
|
||||
def hvac_mode(self) -> str | None:
|
||||
"""Return current operation ie. heat, cool, idle."""
|
||||
return _CLIMATE_MODES.from_esphome(self._state.mode)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue