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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue