core: Netatmo broken in 0.95

Home Assistant release with the issue: 0.95

Last working Home Assistant release (if known): 0.94.x

Operating environment (Hass.io/Docker/Windows/etc.): Hassio

Component/platform: Netatmo

Description of problem: Netatmo integration broken. Entities not available, error in log (see below)

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: usr
  password: !secret netatmo_password
  discovery: False

Traceback (if applicable):

2019-06-27 13:59:25 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform netatmo
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 143, in setup_platform
    config.get(CONF_STATION)))
  File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 190, in __init__
    self._module_type = self.netatmo_data. \
AttributeError: 'NoneType' object has no attribute 'moduleByName'


Additional information:

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 16 (5 by maintainers)

Most upvoted comments

I’m on 0.95. So most likely not. But it’s OK. Will wait for 0.95.2

Enabling discovery will fix the issue partially if you have multiple weather stations on the same account or completely if you have just one station.

I don’t understand. I have this in config …

# Discover some devices automatically
discovery:
  ignore:
    - songpal

and netatmo is broken. What exactly do you mean with that “Enabling discovery will fix…”?

I’ve meant discovery: True in the netatmo config section.