mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-15 05:50:43 +08:00
Modify the order in which the light-on properties are sent
This commit is contained in:
parent
f271336670
commit
da45938656
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user