mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 04:50:17 +00:00
Replace Climate HVAC_MODE_* constants with HVACMode enum (#70286)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user