diff --git a/homeassistant/components/mqtt/climate.py b/homeassistant/components/mqtt/climate.py index 91a36a310cbd98..6ce9c03286f7fb 100644 --- a/homeassistant/components/mqtt/climate.py +++ b/homeassistant/components/mqtt/climate.py @@ -37,6 +37,7 @@ ATTR_TEMPERATURE, CONF_DEVICE, CONF_NAME, + CONF_UNIT_OF_MEASUREMENT, CONF_VALUE_TEMPLATE, PRECISION_HALVES, PRECISION_TENTHS, @@ -294,7 +295,6 @@ def __init__(self, hass, config, config_entry, discovery_hash): self._target_temp_high = None self._target_temp_low = None self._topic = None - self._unit_of_measurement = hass.config.units.temperature_unit self._value_templates = None self._setup_from_config(config) @@ -570,8 +570,11 @@ def unique_id(self): @property def temperature_unit(self): - """Return the unit of measurement.""" - return self._unit_of_measurement + """Return the unit this state is expressed in.""" + mqtt_measure = self._config.get(CONF_UNIT_OF_MEASUREMENT) + if not mqtt_measure: + mqtt_measure = self.hass.config.units.temperature_unit + return mqtt_measure @property def current_temperature(self):