From 9daf3d8e72f1933fb764ea7a61d6e2237e8071a3 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 27 Apr 2022 15:39:58 +0200 Subject: [PATCH] Migrate xbee light to ColorMode (#70907) --- homeassistant/components/xbee/light.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/xbee/light.py b/homeassistant/components/xbee/light.py index 93f5f866f2f..126eaf91f9d 100644 --- a/homeassistant/components/xbee/light.py +++ b/homeassistant/components/xbee/light.py @@ -3,7 +3,7 @@ from __future__ import annotations import voluptuous as vol -from homeassistant.components.light import LightEntity +from homeassistant.components.light import ColorMode, LightEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType @@ -29,3 +29,6 @@ def setup_platform( class XBeeLight(XBeeDigitalOut, LightEntity): """Use XBeeDigitalOut as light.""" + + _attr_color_mode = ColorMode.ONOFF + _attr_supported_color_modes = {ColorMode.ONOFF}