Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when adding devices #6

Open
trancefam opened this issue Jan 23, 2021 · 3 comments · May be fixed by #10
Open

Error when adding devices #6

trancefam opened this issue Jan 23, 2021 · 3 comments · May be fixed by #10

Comments

@trancefam
Copy link

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
Copy link
Author

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

@YeonV
Copy link
Owner

YeonV commented Jan 23, 2021

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

@YeonV
Copy link
Owner

YeonV commented Jan 23, 2021

@trancefam Could you try with v0.2.6?

@trancefam trancefam linked a pull request Jan 30, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants