mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 01:38:02 +00: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:
parent
03a0114e10
commit
c403c77cff
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user