home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70k stars 29.08k forks source link

Entity not available: light - LimitlessLED crashed #26562

Closed rchovan closed 4 years ago

rchovan commented 4 years ago

Home Assistant release with the issue: 0.98.5

Last working Home Assistant release (if known): below 0.97.2

Operating environment (Hass.io/Docker/Windows/etc.): linux, python environment

Component/platform: limitlessled

Description of problem: Limitlessled stopped showing my light. I use MiLight WiFi gateway.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

light:
  platform: limitlessled
  bridges:
    - host: 192.168.2.13
      version: 6 # tried v5 too
      port: 5987 # tried 8899 too
      groups:
      - number: 1
        type: rgbw
        name: Obývačka stena
      - number: 2
        type: rgbw
        name: Obývačka okno

Traceback (if applicable):

2019-09-10 21:48:18 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform limitlessled
Traceback (most recent call last):
  File "/data/hass.io/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/data/hass.io/lib/python3.7/site-packages/homeassistant/components/limitlessled/light.py", line 140, in setup_platform
    from limitlessled.bridge import Bridge
  File "/home/homeassistant/.homeassistant/limitlessled.py", line 12, in <module>
    from homeassistant.components.light import (
ImportError: cannot import name 'SUPPORT_RGB_COLOR' from 'homeassistant.components.light' (/data/hass.io/lib/python3.7/site-packages/homeassistant/components/light/__init__.py)

Additional information: feel free to contact me, comment, I'm ready to help

amelchio commented 4 years ago

/home/homeassistant/.homeassistant/limitlessled.py

Remove this file.

rchovan commented 4 years ago

ok, my fault, I don't remember why exactly I have added this file to HA. Problem solved, THX.