mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Fix detection of zones 2 and 3 in Onkyo/Pioneer amplifiers (#38234)
This commit is contained in:
parent
c93fc8af4a
commit
a1e2bce1b9
@ -120,7 +120,7 @@ def determine_zones(receiver):
|
||||
out = {"zone2": False, "zone3": False}
|
||||
try:
|
||||
_LOGGER.debug("Checking for zone 2 capability")
|
||||
receiver.raw("ZPW")
|
||||
receiver.raw("ZPWQSTN")
|
||||
out["zone2"] = True
|
||||
except ValueError as error:
|
||||
if str(error) != TIMEOUT_MESSAGE:
|
||||
@ -128,7 +128,7 @@ def determine_zones(receiver):
|
||||
_LOGGER.debug("Zone 2 timed out, assuming no functionality")
|
||||
try:
|
||||
_LOGGER.debug("Checking for zone 3 capability")
|
||||
receiver.raw("PW3")
|
||||
receiver.raw("PW3QSTN")
|
||||
out["zone3"] = True
|
||||
except ValueError as error:
|
||||
if str(error) != TIMEOUT_MESSAGE:
|
||||
|
Loading…
x
Reference in New Issue
Block a user