changed STATE_OFF to STATE_STANDBY (#28148)

This commit is contained in:
Villhellm 2019-10-23 13:03:52 -07:00 committed by Paulus Schoutsen
parent 1412862f2a
commit 062ec8a7c2

View File

@ -20,7 +20,7 @@ from homeassistant.const import (
STATE_HOME,
STATE_IDLE,
STATE_PLAYING,
STATE_OFF,
STATE_STANDBY,
)
DEFAULT_PORT = 8060
@ -98,7 +98,7 @@ class RokuDevice(MediaPlayerDevice):
def state(self):
"""Return the state of the device."""
if self._power_state == "Off":
return STATE_OFF
return STATE_STANDBY
if self.current_app is None:
return None