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:
Villhellm 2020-08-02 12:06:16 -07:00 committed by GitHub
parent 03a0114e10
commit c403c77cff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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