mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Add yeelight class to fix superclass issue (#97649)
* Add device naming to Yeelight * Add extra light entity to fix superclass * Add extra light entity to fix superclass
This commit is contained in:
parent
74d02a1574
commit
c7b7ca8769
@ -297,7 +297,7 @@ async def async_setup_entry(
|
|||||||
_lights_setup_helper(YeelightColorLightWithNightlightSwitch)
|
_lights_setup_helper(YeelightColorLightWithNightlightSwitch)
|
||||||
_lights_setup_helper(YeelightNightLightModeWithoutBrightnessControl)
|
_lights_setup_helper(YeelightNightLightModeWithoutBrightnessControl)
|
||||||
else:
|
else:
|
||||||
_lights_setup_helper(YeelightColorLightWithoutNightlightSwitch)
|
_lights_setup_helper(YeelightColorLightWithoutNightlightSwitchLight)
|
||||||
elif device_type == BulbType.WhiteTemp:
|
elif device_type == BulbType.WhiteTemp:
|
||||||
if nl_switch_light and device.is_nightlight_supported:
|
if nl_switch_light and device.is_nightlight_supported:
|
||||||
_lights_setup_helper(YeelightWithNightLight)
|
_lights_setup_helper(YeelightWithNightLight)
|
||||||
@ -931,6 +931,14 @@ class YeelightColorLightWithoutNightlightSwitch(
|
|||||||
"""Representation of a Color Yeelight light."""
|
"""Representation of a Color Yeelight light."""
|
||||||
|
|
||||||
|
|
||||||
|
class YeelightColorLightWithoutNightlightSwitchLight(
|
||||||
|
YeelightColorLightWithoutNightlightSwitch
|
||||||
|
):
|
||||||
|
"""Representation of a Color Yeelight light."""
|
||||||
|
|
||||||
|
_attr_name = None
|
||||||
|
|
||||||
|
|
||||||
class YeelightColorLightWithNightlightSwitch(
|
class YeelightColorLightWithNightlightSwitch(
|
||||||
YeelightNightLightSupport, YeelightColorLightSupport, YeelightGenericLight
|
YeelightNightLightSupport, YeelightColorLightSupport, YeelightGenericLight
|
||||||
):
|
):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user