Skip to content

Commit

Permalink
Catch zeep fault as well on GetSystemDateAndTime call.
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryKuzmenko committed Feb 20, 2025
1 parent 1392bab commit 9d427b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/onvif/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ async def async_check_date_and_time(self) -> None:
LOGGER.debug("%s: Retrieving current device date/time", self.name)
try:
device_time = await device_mgmt.GetSystemDateAndTime()
except RequestError as err:
except (RequestError, Fault) as err:

Check warning on line 238 in homeassistant/components/onvif/device.py

View check run for this annotation

Codecov / codecov/patch

homeassistant/components/onvif/device.py#L238

Added line #L238 was not covered by tests
LOGGER.warning(
"Couldn't get device '%s' date/time. Error: %s", self.name, err
)
Expand Down

0 comments on commit 9d427b1

Please sign in to comment.