Browse Source

Fixed error when using light ID in an automation

"ID 'bedlight' of type yeelight::bs2::YeelightBS2LightState doesn't inherit
from light::LightState. Please double check your ID is pointing to the
correct value."
pull/3/head
Maurice Makaay 3 years ago
parent
commit
9edea79ff7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      light/__init__.py

+ 1
- 1
light/__init__.py View File

@ -11,7 +11,7 @@ CONF_ON_BRIGHTNESS = "on_brightness"
yeelight_ns = cg.esphome_ns.namespace("yeelight") yeelight_ns = cg.esphome_ns.namespace("yeelight")
bs2_ns = yeelight_ns.namespace("bs2") bs2_ns = yeelight_ns.namespace("bs2")
light_state = bs2_ns.class_("YeelightBS2LightState", cg.Nameable, cg.Component)
light_state = bs2_ns.class_("YeelightBS2LightState", light.LightState)
light_output = bs2_ns.class_("YeelightBS2LightOutput", light.LightOutput) light_output = bs2_ns.class_("YeelightBS2LightOutput", light.LightOutput)
BrightnessTrigger = bs2_ns.class_("BrightnessTrigger", automation.Trigger.template()) BrightnessTrigger = bs2_ns.class_("BrightnessTrigger", automation.Trigger.template())


Loading…
Cancel
Save