mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix for exception in screenlogic.set_color_mode (#107850)
This commit is contained in:
parent
4b7a313ece
commit
ee9c6fa0d8
@ -61,10 +61,7 @@ def async_load_screenlogic_services(hass: HomeAssistant):
|
|||||||
color_num,
|
color_num,
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
if not await coordinator.gateway.async_set_color_lights(color_num):
|
await coordinator.gateway.async_set_color_lights(color_num)
|
||||||
raise HomeAssistantError(
|
|
||||||
f"Failed to call service '{SERVICE_SET_COLOR_MODE}'"
|
|
||||||
)
|
|
||||||
# Debounced refresh to catch any secondary
|
# Debounced refresh to catch any secondary
|
||||||
# changes in the device
|
# changes in the device
|
||||||
await coordinator.async_request_refresh()
|
await coordinator.async_request_refresh()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user