mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Catch AssertionError when onkyo zone 3 detection fails (#38374)
This error would cause the entire integration to fail. This at least catches it gracefully.
This commit is contained in:
@@ -134,6 +134,8 @@ def determine_zones(receiver):
|
||||
if str(error) != TIMEOUT_MESSAGE:
|
||||
raise error
|
||||
_LOGGER.debug("Zone 3 timed out, assuming no functionality")
|
||||
except AssertionError:
|
||||
_LOGGER.error("Zone 3 detection failed")
|
||||
|
||||
return out
|
||||
|
||||
|
Reference in New Issue
Block a user