diff --git a/custom_components/rinnaicontrolr-ha/manifest.json b/custom_components/rinnaicontrolr-ha/manifest.json index 2b35c85..1448603 100644 --- a/custom_components/rinnaicontrolr-ha/manifest.json +++ b/custom_components/rinnaicontrolr-ha/manifest.json @@ -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" } \ No newline at end of file diff --git a/custom_components/rinnaicontrolr-ha/water_heater.py b/custom_components/rinnaicontrolr-ha/water_heater.py index c3ee0e8..82abe19 100644 --- a/custom_components/rinnaicontrolr-ha/water_heater.py +++ b/custom_components/rinnaicontrolr-ha/water_heater.py @@ -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 @@ -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