From deb81859110a26ab1b884bacc5ddf035bca663c6 Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Thu, 10 Feb 2022 11:10:58 -0500 Subject: [PATCH] Add unique_id for decora_wifi lights (#66142) I have some decora_wifi switches that I want to be able to move around to different rooms within Home Assistant, and for that to be practical, they need unique IDs, so here we are. Signed-off-by: Jarod Wilson --- homeassistant/components/decora_wifi/light.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/decora_wifi/light.py b/homeassistant/components/decora_wifi/light.py index 4f1f9f059d8..84caf0ad29a 100644 --- a/homeassistant/components/decora_wifi/light.py +++ b/homeassistant/components/decora_wifi/light.py @@ -96,6 +96,7 @@ class DecoraWifiLight(LightEntity): def __init__(self, switch): """Initialize the switch.""" self._switch = switch + self._attr_unique_id = switch.serial @property def supported_features(self):