mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Add compatibility for other STBY Codes (#28478)
Added PWR2 as valid standby code
This commit is contained in:
parent
6004ef3279
commit
9b72a55d60
@ -169,6 +169,8 @@ class PioneerDevice(MediaPlayerDevice):
|
|||||||
@property
|
@property
|
||||||
def state(self):
|
def state(self):
|
||||||
"""Return the state of the device."""
|
"""Return the state of the device."""
|
||||||
|
if self._pwstate == "PWR2":
|
||||||
|
return STATE_OFF
|
||||||
if self._pwstate == "PWR1":
|
if self._pwstate == "PWR1":
|
||||||
return STATE_OFF
|
return STATE_OFF
|
||||||
if self._pwstate == "PWR0":
|
if self._pwstate == "PWR0":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user