Improve type hints in aosmith water_heater (#163191)

This commit is contained in:
epenet
2026-02-16 18:07:10 +01:00
committed by GitHub
parent a5c1ed593c
commit d85040058f

View File

@@ -120,7 +120,7 @@ class AOSmithWaterHeaterEntity(AOSmithStatusEntity, WaterHeaterEntity):
return MODE_AOSMITH_TO_HA.get(self.device.status.current_mode, STATE_OFF)
@property
def is_away_mode_on(self):
def is_away_mode_on(self) -> bool:
"""Return True if away mode is on."""
return self.device.status.current_mode == AOSmithOperationMode.VACATION