From ed76ae9cd1f20af0f228835f8682609089db505c Mon Sep 17 00:00:00 2001 From: GavinIves Date: Wed, 9 Jul 2025 03:42:05 +0000 Subject: [PATCH] fix bug --- custom_components/xiaomi_home/select.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom_components/xiaomi_home/select.py b/custom_components/xiaomi_home/select.py index c0488e4..b518692 100644 --- a/custom_components/xiaomi_home/select.py +++ b/custom_components/xiaomi_home/select.py @@ -125,7 +125,9 @@ class LightCommandSendMode(SelectEntity, RestoreEntity): self.hass = hass self._device_id = device_id self._attr_name = "Command Send Mode" - self._attr_unique_id = f"{DOMAIN}.light_{device_id}_command_send_mode" + self.entity_id = f"select.light_{device_id}_command_send_mode" + self._attr_unique_id = self.entity_id + self._attr_options = [ "Send One by One", "Send Turn On First", "Send Together" ]