Since the update to 0.116.1 the netatmo integration isn't working anymore. A server restart doesn't fix the problem.
configuration.yaml
Logger: homeassistant.components.sensor
Source: components/netatmo/sensor.py:252
Integration: Sensor (documentation, issues)
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 159, in async_setup_entry
async_add_entities(await find_entities(data_class_name), True)
File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 150, in find_entities
NetatmoSensor(data_handler, data_class_name, module, condition)
File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 252, in __init__
f"{MANUFACTURER} {self._device_name} {SENSOR_TYPES[sensor_type][0]}"
KeyError: 'temp_trend'
Same problem and same error logs here ...
I add that in the logs there is also the following error
Logger: pyatmo.thermostat
Source: /usr/local/lib/python3.8/site-packages/pyatmo/thermostat.py:152
First occurred: 22:43:17 (1 occurrences)
Last logged: 22:43:17
Errors in response: {'status': 'ok', 'time_server': 1602189797, 'body': {'home': {'id': '5be21597ac34a50a008bfddb'}, 'errors': [{'code': 6, 'id': '70:ee:50:10:47:d6'}]}}
Same problem same log here as well.
netatmo documentation
netatmo source
(message by IssueLinks)
Hey there @cgtobi, mind taking a look at this issue as its been labeled with an integration (netatmo) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)
Thanks for reporting it. It's is fixed and should ship with 0.116.2x
Tested the fix as a custom component, used to be 20 entities now 13. Sensor module_temperature is one of the missing entities ?
Thanks for the feedback. I'll take a look immediately.
Tested fix aswell, looks like CO2 and humidity are not working for additionnal indoor modules.
And status for main module is :

Can't edit my comment...
Missing the rain also on rain module (rain 24h and rain 1h works)
Line 139 needs to be if c.lower() in SENSOR_TYPES instead of if c in SENSOR_TYPES. Can you verify that?
Checking... will report !
Yes ! Works 100% sensors back with if c.lower() in SENSOR_TYPES on line 139 in sensor.py
Thanks @SNoof85
Works fine.
Netatmo sensors are back with 0.116.2 but logs still reports this error:
Logger: pyatmo.thermostat
Source: /usr/local/lib/python3.8/site-packages/pyatmo/thermostat.py:152
First occurred: 22:51:50 (9 occurrences)
Last logged: 23:47:47
Errors in response: {'status': 'ok', 'time_server': 1602278389, 'body': {'home': {'id': '5be21597ac34a50a008bfddb'}, 'errors': [{'code': 6, 'id': '70:ee:50:10:47:d6'}]}}
Errors in response: {'status': 'ok', 'time_server': 1602278808, 'body': {'home': {'id': '5be21597ac34a50a008bfddb'}, 'errors': [{'code': 6, 'id': '70:ee:50:10:47:d6'}]}}
Errors in response: {'status': 'ok', 'time_server': 1602279228, 'body': {'home': {'id': '5be21597ac34a50a008bfddb'}, 'errors': [{'code': 6, 'id': '70:ee:50:10:47:d6'}]}}
Errors in response: {'status': 'ok', 'time_server': 1602279648, 'body': {'home': {'id': '5be21597ac34a50a008bfddb'}, 'errors': [{'code': 6, 'id': '70:ee:50:10:47:d6'}]}}
Errors in response: {'status': 'ok', 'time_server': 1602280068, 'body': {'home': {'id': '5be21597ac34a50a008bfddb'}, 'errors': [{'code': 6, 'id': '70:ee:50:10:47:d6'}]}}
This error appeared with "0.116.1 Netatmo breaking release" but I don't know if it is "Netatmo related" ....
This is unrelated. It probably means that one of your climate devices (70:ee:50:10:47:d6) is unreachable.
Thank you @cgtobi
You鈥檙e right. It is probably related to a Netatmo thermostat that I had to take apart because the homeowner wanted to install a new boiler with its own thermostat