From 906c12d8aafc2e6ee47629590cdeb0a0f7a7f346 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 27 Apr 2022 15:42:35 +0200 Subject: [PATCH] Migrate screenlogic light to ColorMode (#70902) --- homeassistant/components/screenlogic/light.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/screenlogic/light.py b/homeassistant/components/screenlogic/light.py index c003a756974..c8067670942 100644 --- a/homeassistant/components/screenlogic/light.py +++ b/homeassistant/components/screenlogic/light.py @@ -3,7 +3,7 @@ import logging from screenlogicpy.const import DATA as SL_DATA, GENERIC_CIRCUIT_NAMES -from homeassistant.components.light import LightEntity +from homeassistant.components.light import ColorMode, LightEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback @@ -34,3 +34,6 @@ async def async_setup_entry( class ScreenLogicLight(ScreenLogicCircuitEntity, LightEntity): """Class to represent a ScreenLogic Light.""" + + _attr_color_mode = ColorMode.ONOFF + _attr_supported_color_modes = {ColorMode.ONOFF}