mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 06:35:10 +02:00
Fix detection of zones 2 and 3 in Onkyo/Pioneer amplifiers (#38234)
This commit is contained in:
committed by
GitHub
parent
c93fc8af4a
commit
a1e2bce1b9
@@ -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:
|
||||||
|
Reference in New Issue
Block a user