From 9b72a55d60c5ac07c494d2bde17a79e75b348773 Mon Sep 17 00:00:00 2001 From: Luca Zimmermann Date: Mon, 4 Nov 2019 11:11:10 +0100 Subject: [PATCH] Add compatibility for other STBY Codes (#28478) Added PWR2 as valid standby code --- homeassistant/components/pioneer/media_player.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/pioneer/media_player.py b/homeassistant/components/pioneer/media_player.py index 0c6de9803e1..51f55d4e851 100644 --- a/homeassistant/components/pioneer/media_player.py +++ b/homeassistant/components/pioneer/media_player.py @@ -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":