Skip to content

Commit

Permalink
Update to use correct property to get current operation
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Blyler <[email protected]>
  • Loading branch information
ablyler committed Feb 9, 2024
1 parent ac387b7 commit 76336f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/bradford-white-connect/water_heater.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ def max_temp(self) -> float:
def current_operation(self) -> str:
"""Return the current operation mode."""
return MODE_BRADFORDWHITE_TO_HA.get(
self.device.properties["user_heat_mode"].value, STATE_OFF
self.device.properties["current_system_mode"].value, STATE_OFF
)

@property
def is_away_mode_on(self):
"""Return True if away mode is on."""
return (
self.device.properties["user_heat_mode"].value
self.device.properties["current_system_mode"].value
== BradfordWhiteConnectHeatingModes.VACATION
)

Expand Down

0 comments on commit 76336f0

Please sign in to comment.