Fix detection of zones 2 and 3 in Onkyo/Pioneer amplifiers (#38234)

pull/38303/head
Jeroen Van den Keybus 2020-07-28 01:40:21 +02:00 committed by GitHub
parent c93fc8af4a
commit a1e2bce1b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ def determine_zones(receiver):
out = {"zone2": False, "zone3": False} out = {"zone2": False, "zone3": False}
try: try:
_LOGGER.debug("Checking for zone 2 capability") _LOGGER.debug("Checking for zone 2 capability")
receiver.raw("ZPW") receiver.raw("ZPWQSTN")
out["zone2"] = True out["zone2"] = True
except ValueError as error: except ValueError as error:
if str(error) != TIMEOUT_MESSAGE: if str(error) != TIMEOUT_MESSAGE:
@ -128,7 +128,7 @@ def determine_zones(receiver):
_LOGGER.debug("Zone 2 timed out, assuming no functionality") _LOGGER.debug("Zone 2 timed out, assuming no functionality")
try: try:
_LOGGER.debug("Checking for zone 3 capability") _LOGGER.debug("Checking for zone 3 capability")
receiver.raw("PW3") receiver.raw("PW3QSTN")
out["zone3"] = True out["zone3"] = True
except ValueError as error: except ValueError as error:
if str(error) != TIMEOUT_MESSAGE: if str(error) != TIMEOUT_MESSAGE: