core: netatmo broken in 0.116.1
The problem
Since the update to 0.116.1 the netatmo integration isn’t working anymore. A server restart doesn’t fix the problem.
Environment
- Home Assistant Core release with the issue: 0.116.1
- Last working Home Assistant Core release (if known): 0.116.0
- Operating environment (OS/Container/Supervised/Core): OS on pi4
- Integration causing this issue: netatmo
- Link to integration documentation on our website: https://www.home-assistant.io/integrations/netatmo/
Problem-relevant configuration.yaml
Traceback/Error logs
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'
Additional information
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 15
- Comments: 17 (9 by maintainers)
Works fine.
Yes ! Works 100% sensors back with
if c.lower() in SENSOR_TYPES
on line 139 insensor.py
Checking… will report !
Line 139 needs to be
if c.lower() in SENSOR_TYPES
instead ofif c in SENSOR_TYPES
. Can you verify that?Thanks for reporting it. It’s is fixed and should ship with 0.116.2x