core: Setup error with Netatmo after reboot on OSX

Home Assistant release with the issue: 0.88.2

Last working Home Assistant release (if known):

Operating environment (Hass.io/Docker/Windows/etc.): MacOS X Mojave

Component/platform: Netatmo

Description of problem: Getting en setup error for Netatmo component. API, KEY, User and Password are correct, but still error persists. Tried to go back to severeal previous version of HA but still doesn’t work.

2019-03-10 12:27:28 ERROR (MainThread) [homeassistant.setup] Error during setup of component netatmo
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/homeassistant/setup.py", line 154, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/homeassistant/components/netatmo/__init__.py", line 48, in setup
    'read_station read_camera access_camera '
  File "/Users/Pinuccio/.homeassistant/deps/lib/python/site-packages/pyatmo.py", line 85, in __init__
    self._accessToken = resp["access_token"]
TypeError: 'NoneType' object is not subscriptable

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

netatmo:
  api_key: !secret netatmo_api_key
  secret_key: !secret netatmo_secret_key
  username: !secret netatmo_user
  password: !secret netatmo_password

Traceback (if applicable):


Additional information:

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 23 (7 by maintainers)

Most upvoted comments

I fixed it. Problem was with socat in hassio supervisor container. Socat cannot start because apparmor settings not allow to load neccessary libraries.

sure I will do this

It is even easier that that.

Jus run the following on my mac: /Applications/Python\ 3.6/Install\ Certificates.command

And this fixed it