From da4593865623711e31ad06e21d8733046a756040 Mon Sep 17 00:00:00 2001 From: GavinIves Date: Wed, 4 Jun 2025 20:20:37 +0800 Subject: [PATCH] Modify the order in which the light-on properties are sent --- custom_components/xiaomi_home/light.py | 1 - 1 file changed, 1 deletion(-) diff --git a/custom_components/xiaomi_home/light.py b/custom_components/xiaomi_home/light.py index cf058a7..9185a98 100644 --- a/custom_components/xiaomi_home/light.py +++ b/custom_components/xiaomi_home/light.py @@ -308,7 +308,6 @@ class Light(MIoTServiceEntity, LightEntity): if self._prop_on: value_on = True if self._prop_on.format_ == bool else 1 # noqa: E721 set_properties_list.append({"prop": self._prop_on, "value": value_on}) - await self.set_property_async(prop=self._prop_on, value=value_on) # color-temperature if ATTR_COLOR_TEMP_KELVIN in kwargs: set_properties_list.append(