Netatmo Integration not working anymore since update to 0.116

Tags: #<Tag:0x00007f325fd95740>

Hi all! Our netatmo integration has stopped working this week.
It works fine with one home set up in the netatmo account, but as soon as I add a second home, it can not find any devices at all (even the first home’s devices are gone).
Several removals and re-addings later I can confirm that this is reproducible.
The same netatmo account works fine with OpenHAB, no problem there.
Any ideas?

Logger: homeassistant.components.sensor
Source: components/netatmo/sensor.py:248
Integration: Sensor ([documentation](https://www.home-assistant.io/integrations/sensor), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+sensor%22))
First occurred: 13:23:01 (1 occurrences)
Last logged: 13:23:01

Error while setting up netatmo platform for sensor

Traceback (most recent call last): 
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform 
    await asyncio.shield(task) 
  File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 160, in async_setup_entry 
    async_add_entities(await find_entities(data_class_name), True) 
  File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 151, in find_entities 
    NetatmoSensor(data_handler, data_class_name, module, condition) 
  File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 248, in __init__ 
    self._device_name = module_info["station_name"] 
KeyError: 'station_name'


Logger: homeassistant
Source: helpers/temperature.py:23
First occurred: 11:48:14 (96 occurrences)
Last logged: 13:23:15

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 592, in _update_entity_states
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 283, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 322, in _async_write_ha_state
    attr.update(self.state_attributes or {})
  File "/usr/src/homeassistant/homeassistant/components/water_heater/__init__.py", line 175, in state_attributes
    ATTR_TEMPERATURE: show_temp(
  File "/usr/src/homeassistant/homeassistant/helpers/temperature.py", line 23, in display_temp
    raise TypeError(f"Temperature is not a number: {temperature}")
TypeError: Temperature is not a number: error

A fix for this is already in the working. Just waiting for an upstream release.

Please see: https://github.com/home-assistant/core/issues/41654

Great, thanks so much!

1 Like