ShellyForHASS: [BUG] All shellies unavailable after updating to 2021.12.1

Environment

  • ShellyForHASS release with the issue: 0.3.2
  • Last working ShellyForHASS release (if known): i think the version before this one
  • Home Assistant Core release with the issue: 2021.12.1
  • Operating environment (Home Assistant/Supervised/Docker/venv): Home Assistant

Describe the bug

I updated home assistant and after that all shellies are offline. The used ip addresses are all correct and i can use the “Visit Device” button in home assistant devices to get to the web interface.

Steps to Reproduce

Expected behavior

Screenshots

Traceback/Error logs

Logger: homeassistant.config_entries
Source: custom_components/shelly/__init__.py:98
Integration: Shelly smart home (documentation)
First occurred: 18:33:29 (17 occurrences)
Last logged: 18:33:30

Error setting up entry Wohnzimmer - Media for shelly
Error setting up entry GästeWC for shelly
Error setting up entry Wohnzimmer - Strom 1 for shelly
Error setting up entry Esszimmer - Licht for shelly
Error setting up entry Küche - Strom for shelly
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 313, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/config/custom_components/shelly/__init__.py", line 98, in async_setup_entry
    conf = CONFIG_SCHEMA_ROOT(data)
  File "/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping
    raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: extra keys not allowed @ data['host']

Additional context

I think that i understand what “voluptuous.error.MultipleInvalid: extra keys not allowed @ data[‘host’]” could mean, but i don’t have any idea where this “host” entry could be in my configs.

I probably did forget to read the how to upgrade or whatever or missed something. I am thankfull for any help.

About this issue

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

Most upvoted comments

@hakana you’ve marked this as fixed, but is it still on your radar? It looks like many people can still reproduce this in the latest versions. Let me know if you’d like me to do some debugging.

I am getting the same error on 0.33 and HA 2021.12.9

File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 313, in async_setup result = await component.async_setup_entry(hass, self) # type: ignore File “/config/custom_components/shelly/init.py”, line 98, in async_setup_entry conf = CONFIG_SCHEMA_ROOT(data) File “/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py”, line 272, in call return self._compiled([], data) File “/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py”, line 594, in validate_dict return base_validate(path, iteritems(data), out) File “/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py”, line 432, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: extra keys not allowed @ data[‘host’]