Skip to content

Commit

Permalink
Catch errors in automation (instead of raise unexpected error) in Ove…
Browse files Browse the repository at this point in the history
…rkiz (#135026)

Catch errors in automation (instead of raise unexpected error)
  • Loading branch information
iMicknl authored Jan 7, 2025
1 parent 48da885 commit 802ad55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/overkiz/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from urllib.parse import urlparse

from pyoverkiz.enums import OverkizCommand, Protocol
from pyoverkiz.exceptions import OverkizException
from pyoverkiz.exceptions import BaseOverkizException
from pyoverkiz.models import Command, Device, StateDefinition
from pyoverkiz.types import StateType as OverkizStateType

Expand Down Expand Up @@ -105,7 +105,7 @@ async def async_execute_command(
"Home Assistant",
)
# Catch Overkiz exceptions to support `continue_on_error` functionality
except OverkizException as exception:
except BaseOverkizException as exception:
raise HomeAssistantError(exception) from exception

# ExecutionRegisteredEvent doesn't contain the device_url, thus we need to register it here
Expand Down

0 comments on commit 802ad55

Please sign in to comment.