8000 "Error while setting up ring platform for switch" in HA log · Issue #135741 · home-assistant/core · GitHub
[go: up one dir, main page]

Skip to content
"Error while setting up ring platform for switch" in HA log #135741
@vincent516

Description

@vincent516

The problem

Seeing this error in the log from the Ring integration:

Logger: homeassistant.components.switch
Source: helpers/entity_platform.py:374
integration: Switch (documentation, issues)
First occurred: January 14, 2025 at 9:24:04 PM (1 occurrences)
Last logged: January 14, 2025 at 9:24:04 PM

Error while setting up ring platform for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 374, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 641, in async_add_entities
for entity in new_entities:
^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/ring/switch.py", line 95, in
if description.exists_fn(device)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/ring/switch.py", line 64, in
and device.existing_doorbell_type in IN_HOME_CHIME_IS_PRESENT,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/ring_doorbell/doorbot.py", line 193, in existing_doorbell_type
return DOORBELL_EXISTING_TYPE[dtype]
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 5

I have tried removing the Ring integration and readding it, but I get the same results.

What version of Home Assistant Core has the issue?

core-2025.1.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Ring

Link to integration documentation on our website

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

Diagnostics information

config_entry-ring-01JHKW7SBEFE4P9JWA1QX3QAT7.json

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0