ledfxrm icon indicating copy to clipboard operation
ledfxrm copied to clipboard

Error when adding devices

Open trancefam opened this issue 4 years ago • 3 comments

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'

trancefam avatar Jan 23 '21 07:01 trancefam

I've confirmed that v0.2.4 does not have this issue

trancefam avatar Jan 23 '21 07:01 trancefam

Will look into it today. Thx for testing. (also you need the LATEST dev-branch of ledfx) @trancefam join our discord bro

YeonV avatar Jan 23 '21 12:01 YeonV

@trancefam Could you try with v0.2.6?

YeonV avatar Jan 23 '21 18:01 YeonV