From 9edea79ff7d065f6c836981138c35667d10a4e49 Mon Sep 17 00:00:00 2001 From: Maurice Makaay Date: Fri, 9 Apr 2021 00:18:38 +0200 Subject: [PATCH] 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." --- light/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/light/__init__.py b/light/__init__.py index 8b06010..12f2c67 100644 --- a/light/__init__.py +++ b/light/__init__.py @@ -11,7 +11,7 @@ CONF_ON_BRIGHTNESS = "on_brightness" yeelight_ns = cg.esphome_ns.namespace("yeelight") 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) BrightnessTrigger = bs2_ns.class_("BrightnessTrigger", automation.Trigger.template())