mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Add guard in call to activate_scene in Hue (#62177)
This commit is contained in:
parent
a6cfbd4072
commit
ad171944da
@ -146,8 +146,10 @@ async def hue_activate_scene_v2(
|
|||||||
continue
|
continue
|
||||||
# found match!
|
# found match!
|
||||||
if transition:
|
if transition:
|
||||||
transition = transition * 100 # in steps of 100ms
|
transition = transition * 1000 # transition is in ms
|
||||||
await api.scenes.recall(scene.id, dynamic=dynamic, duration=transition)
|
await bridge.async_request_call(
|
||||||
|
api.scenes.recall, scene.id, dynamic=dynamic, duration=transition
|
||||||
|
)
|
||||||
return True
|
return True
|
||||||
LOGGER.debug(
|
LOGGER.debug(
|
||||||
"Unable to find scene %s for group %s on bridge %s",
|
"Unable to find scene %s for group %s on bridge %s",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user