From db3eb26c74c905767f79dc642eda30d58124d4f8 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 28 Apr 2022 09:05:08 +0200 Subject: [PATCH] Correct color mode in shelly light (#70967) --- homeassistant/components/shelly/light.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/shelly/light.py b/homeassistant/components/shelly/light.py index 3530241f102..295f64b01f6 100644 --- a/homeassistant/components/shelly/light.py +++ b/homeassistant/components/shelly/light.py @@ -380,6 +380,9 @@ class BlockShellyLight(ShellyBlockEntity, LightEntity): class RpcShellyLight(ShellyRpcEntity, LightEntity): """Entity that controls a light on RPC based Shelly devices.""" + _attr_color_mode = ColorMode.ONOFF + _attr_supported_color_modes = {ColorMode.ONOFF} + def __init__(self, wrapper: RpcDeviceWrapper, id_: int) -> None: """Initialize light.""" super().__init__(wrapper, f"switch:{id_}")