38.1: ValueError: None is not a recognized temperature unit

Hi,

I just switched to v38.1 and now I’m getting dozens of these errors at startup:

17-02-12 11:13:49 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "uvloop/future.pyx", line 372, in uvloop.loop.BaseTask._fast_step (uvloop/loop.c:112669)
  File "/usr/src/app/homeassistant/helpers/entity.py", line 220, in async_update_ha_state
    attr = self.state_attributes or {}
  File "/usr/src/app/homeassistant/components/climate/__init__.py", line 417, in state_attributes
    ATTR_MIN_TEMP: self._convert_for_display(self.min_temp),
  File "/usr/src/app/homeassistant/components/climate/__init__.py", line 676, in min_temp
    return convert_temperature(7, TEMP_CELSIUS, self.temperature_unit)
  File "/usr/src/app/homeassistant/util/temperature.py", line 27, in convert
    TEMPERATURE))
ValueError: None is not a recognized temperature unit.

Sebastian

Which climate component are you using?

I’m using Danfoss ZWave thermostats (climate.danfoss_z_thermostat_014g0013_heating_*).
I tried explicitely adding a unit_of_measurement to the thermostats via customize, but that didn’t have any effect.

Sebastian

That sounds like the issue I’m having, thanks!
I didn’t even notice yet that the thermostats are not showing up in HA.
I guess it’s time for a downgrade until this is fixed.

Sebastian