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 GitHub
parent 4b7a313ece
commit ee9c6fa0d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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