Add compatibility for other STBY Codes (#28478)

Added PWR2 as valid standby code
pull/28522/head
Luca Zimmermann 2019-11-04 11:11:10 +01:00 committed by Fabian Affolter
parent 6004ef3279
commit 9b72a55d60
1 changed files with 2 additions and 0 deletions

View File

@ -169,6 +169,8 @@ class PioneerDevice(MediaPlayerDevice):
@property
def state(self):
"""Return the state of the device."""
if self._pwstate == "PWR2":
return STATE_OFF
if self._pwstate == "PWR1":
return STATE_OFF
if self._pwstate == "PWR0":