Fix for exception in screenlogic.set_color_mode (#107850)

This commit is contained in:
Kevin Worrel 2024-01-12 01:30:55 -08:00 committed by Franck Nijhof
parent 97b596a00d
commit 061d2d3ccf
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -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()