Fix usage of states 'idle' and 'standby' for Android TV (#36509)

pull/36538/head
Jeff Irion 2020-06-07 08:10:20 -07:00 committed by GitHub
parent ad5101c5c0
commit 823f27db5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -4,7 +4,7 @@
"documentation": "https://www.home-assistant.io/integrations/androidtv",
"requirements": [
"adb-shell==0.1.3",
"androidtv==0.0.41",
"androidtv==0.0.43",
"pure-python-adb==0.2.2.dev0"
],
"codeowners": ["@JeffLIrion"]

View File

@ -248,7 +248,7 @@ ambiclimate==0.2.1
amcrest==1.7.0
# homeassistant.components.androidtv
androidtv==0.0.41
androidtv==0.0.43
# homeassistant.components.anel_pwrctrl
anel_pwrctrl-homeassistant==0.0.1.dev2

View File

@ -125,7 +125,7 @@ airly==0.0.2
ambiclimate==0.2.1
# homeassistant.components.androidtv
androidtv==0.0.41
androidtv==0.0.43
# homeassistant.components.apns
apns2==0.3.0

View File

@ -31,9 +31,9 @@ from homeassistant.const import (
CONF_NAME,
CONF_PLATFORM,
SERVICE_VOLUME_SET,
STATE_IDLE,
STATE_OFF,
STATE_PLAYING,
STATE_STANDBY,
STATE_UNAVAILABLE,
)
from homeassistant.setup import async_setup_component
@ -150,7 +150,7 @@ async def _test_reconnect(hass, caplog, config):
# state will be the last known state
state = hass.states.get(entity_id)
if patch_key == "server":
assert state.state == STATE_IDLE
assert state.state == STATE_STANDBY
else:
assert state.state == STATE_OFF
@ -159,7 +159,7 @@ async def _test_reconnect(hass, caplog, config):
await hass.helpers.entity_component.async_update_entity(entity_id)
state = hass.states.get(entity_id)
assert state is not None
assert state.state == STATE_IDLE
assert state.state == STATE_STANDBY
if patch_key == "python":
assert (
@ -879,7 +879,7 @@ async def test_update_lock_not_acquired(hass):
await hass.helpers.entity_component.async_update_entity(entity_id)
state = hass.states.get(entity_id)
assert state is not None
assert state.state == STATE_IDLE
assert state.state == STATE_STANDBY
async def test_download(hass):