Skip to content

Error when adding devices #6

@trancefam

Description

@trancefam

Version of the custom_component

0.2.5

Configuration

None

Describe the bug

Hello, Thank you very much for the integration, it is exactly what I'm looking for! I am having an issue when trying to add devices. I receive the following error log. I am on the latest version of HA. The issue persists even after following the "messed up" guide in the wiki.

Debug log

Error adding entities for domain light with platform ledfxrm
Error while setting up ledfxrm platform for light
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 316, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 427, in _async_add_entity
    original_icon=entity.icon,
  File "/config/custom_components/ledfxrm/light.py", line 185, in icon
    if self.deviceconfig["icon_name"].startswith("mdi:"):
KeyError: 'icon_name'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions