core: Netatmo - Missing time_exec?

The problem

I recently added the netatmo integration and it was working fine until today. When I noticed that the sensors were unavailable I looked at the logs and found this.

What is version of Home Assistant Core has the issue?

2021.7.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Netatmo

Link to integration documentation on our website

https://www.home-assistant.io/integrations/netatmo/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2021-07-13 19:35:58 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up netatmo platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 250, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 250, in async_setup_entry
    await add_public_entities(False)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 220, in add_public_entities
    await data_handler.register_data_class(
  File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 181, in register_data_class
    await self.async_fetch_data(data_class_entry)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 139, in async_fetch_data
    await self.data[data_class_entry].async_update()
  File "/usr/local/lib/python3.9/site-packages/pyatmo/public_data.py", line 248, in async_update
    self.process(resp_data)
  File "/usr/local/lib/python3.9/site-packages/pyatmo/public_data.py", line 49, in process
    self.time_exec = to_time_string(resp["time_exec"])
KeyError: 'time_exec'

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (4 by maintainers)

Most upvoted comments

It is fixed upstream. I’m waiting for a new release. This should land in HA soon.

we will be patient, we will complain

Yes, because the fix has not been shipped yet.

Thanks for reporting this issue. I’ll take a look asap.