mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +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:
|
if str(error) != TIMEOUT_MESSAGE:
|
||||||
raise error
|
raise error
|
||||||
_LOGGER.debug("Zone 3 timed out, assuming no functionality")
|
_LOGGER.debug("Zone 3 timed out, assuming no functionality")
|
||||||
|
except AssertionError:
|
||||||
|
_LOGGER.error("Zone 3 detection failed")
|
||||||
|
|
||||||
return out
|
return out
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user