Skip to content

Commit

Permalink
fix: water heaters are always in fahrenheit. fixes #96, fixes #127 (#134
Browse files Browse the repository at this point in the history
)
  • Loading branch information
cryptk authored Jan 8, 2025
1 parent f8e5bfb commit 7145552
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/omnilogic_local/water_heater.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ def __init__(self, coordinator: OmniLogicCoordinator, context: int, heater_equip

@property
def temperature_unit(self) -> str:
return str(UnitOfTemperature.CELSIUS) if self.get_system_config().units == "Metric" else str(UnitOfTemperature.FAHRENHEIT)
# Heaters always return their values in Fahrenheit, no matter what units the system is set to
# https://github.com/cryptk/haomnilogic-local/issues/96
return UnitOfTemperature.FAHRENHEIT

@property
def min_temp(self) -> float:
Expand Down

0 comments on commit 7145552

Please sign in to comment.