Modify the order in which the light-on properties are sent

This commit is contained in:
GavinIves 2025-06-04 20:20:37 +08:00
parent f271336670
commit da45938656

View File

@ -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(