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,
|
||||
)
|
||||
try:
|
||||
if not await coordinator.gateway.async_set_color_lights(color_num):
|
||||
raise HomeAssistantError(
|
||||
f"Failed to call service '{SERVICE_SET_COLOR_MODE}'"
|
||||
)
|
||||
await coordinator.gateway.async_set_color_lights(color_num)
|
||||
# Debounced refresh to catch any secondary
|
||||
# changes in the device
|
||||
await coordinator.async_request_refresh()
|
||||
|
Loading…
x
Reference in New Issue
Block a user