Yeelight add state check to set_mode service (#59884)
This commit is contained in:
parent
1ecd9c9459
commit
05eb2f3e5c
1 changed files with 1 additions and 0 deletions
|
@ -842,6 +842,7 @@ class YeelightGenericLight(YeelightEntity, LightEntity):
|
|||
async def async_set_mode(self, mode: str):
|
||||
"""Set a power mode."""
|
||||
await self._bulb.async_set_power_mode(PowerMode[mode.upper()])
|
||||
self._async_schedule_state_check(True)
|
||||
|
||||
@_async_cmd
|
||||
async def async_start_flow(self, transitions, count=0, action=ACTION_RECOVER):
|
||||
|
|
Loading…
Add table
Reference in a new issue