[SOLVED] Netatmo Public data not working on 0.92.1 - Solved in 0.92.2

Hi all

EDIT: just saw this issue on Github. It seems it should be solved in 0.92.2

I’ve this configuration of Netatmo Publica data that was working until 0.91.4

I get this error

netatmo_public: Error on device update!
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 261, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 377, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/netatmo_public/sensor.py", line 117, in update
  File "/usr/local/lib/python3.7/site-packages/homeassistant/util/__init__.py", line 224, in wrapper
    result = method(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/netatmo_public/sensor.py", line 172, in update
  File "/usr/local/lib/python3.7/site-packages/smart_home/PublicData.py", line 40, in __init__
    self.getAuthToken = auth_data.accessToken
AttributeError: 'NoneType' object has no attribute 'accessToken'

In configuration.yaml

  api_key: !secret netatmo_api_key
  secret_key: !secret netatmo_secret_key
  username: !secret netatmo_username
  password: !secret netatmo_password
  discovery: false

in sensor.yaml

  - platform: netatmo_public
      - lat_ne: !secret netatmo_public_lat_ne
        lon_ne: !secret netatmo_public_lon_ne
        lat_sw: !secret netatmo_public_lat_sw
        lon_sw: !secret netatmo_public_lon_sw
          - temperature
          - pressure
          - humidity
          - rain
          - windstrength
          - guststrength

I followed the component page instruction

I have also a Betatmo Thermostat that is working fine!

Any advice?


1 Like

Solved in 0.92.2