Sholofly / lghorizon

Custom integration to control LG Horizon settop boxes for Ziggo(NL), Magenta(AT), UPC(CH), Virgin(GB, IE), Telenet(BE)
GNU General Public License v3.0
63 stars 15 forks source link

Error setting up entry #142

Closed golles closed 4 weeks ago

golles commented 4 weeks ago

Describe the bug Just saw your latest release and updated

To Reproduce Steps to reproduce the behavior:

  1. Start HA
  2. Integration fails to load

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Version of the component dev, 9b5a690

Logging

2024-10-26 17:48:27.343 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry *** for lghorizon
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/lghorizon/__init__.py", line 58, in async_setup_entry
    profile_id=entry.data[CONF_PROFILE_ID],
               ~~~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: 'profile_id'

Additional context Add any other context about the problem here.

Sholofly commented 4 weeks ago

You are quick. I'malready testing a new release ;)

golles commented 4 weeks ago

Deleting the integration and adding it again works fine