mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-18 08:00:42 +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:
|
if self._prop_on:
|
||||||
value_on = True if self._prop_on.format_ == bool else 1 # noqa: E721
|
value_on = True if self._prop_on.format_ == bool else 1 # noqa: E721
|
||||||
set_properties_list.append({"prop": self._prop_on, "value": value_on})
|
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
|
# color-temperature
|
||||||
if ATTR_COLOR_TEMP_KELVIN in kwargs:
|
if ATTR_COLOR_TEMP_KELVIN in kwargs:
|
||||||
set_properties_list.append(
|
set_properties_list.append(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user