Skip to content

Commit

Permalink
Merge pull request #88 from explosivo22/dev
Browse files Browse the repository at this point in the history
Fix for incorrect temperature reporting on C or F
  • Loading branch information
explosivo22 authored Nov 11, 2024
2 parents 05677c6 + 5ad5263 commit cd46db6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/rinnaicontrolr-ha/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"documentation": "https://github.com/explosivo22/rinnaicontrolr-ha/",
"codeowners": [ "@explosivo22" ],
"requirements": [ "aiorinnai==0.3.2" ],
"version": "1.4.3",
"version": "1.4.4",
"iot_class": "cloud_polling"
}
6 changes: 4 additions & 2 deletions custom_components/rinnaicontrolr-ha/water_heater.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ def icon(self):

@property
def temperature_unit(self):
if self.hass.config.units is METRIC_SYSTEM:
return UnitOfTemperature.CELSIUS
return UnitOfTemperature.FAHRENHEIT

@property
Expand All @@ -98,10 +96,14 @@ def is_away_mode_on(self):

@property
def outlet_temperature(self):
if self.hass.config.units is METRIC_SYSTEM:
return round((self._device.outlet_temperature-32)/1.8, 1)
return round(self._device.outlet_temperature, 1)

@property
def inlet_temperature(self):
if self.hass.config.units is METRIC_SYSTEM:
return round((self._device.inlet_temperature-32)/1.8, 1)
return round(self._device.inlet_temperature, 1)

@property
Expand Down

0 comments on commit cd46db6

Please sign in to comment.