mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix usage of states 'idle' and 'standby' for Android TV (#36509)
This commit is contained in:
parent
ad5101c5c0
commit
823f27db5a
@ -4,7 +4,7 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/androidtv",
|
"documentation": "https://www.home-assistant.io/integrations/androidtv",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"adb-shell==0.1.3",
|
"adb-shell==0.1.3",
|
||||||
"androidtv==0.0.41",
|
"androidtv==0.0.43",
|
||||||
"pure-python-adb==0.2.2.dev0"
|
"pure-python-adb==0.2.2.dev0"
|
||||||
],
|
],
|
||||||
"codeowners": ["@JeffLIrion"]
|
"codeowners": ["@JeffLIrion"]
|
||||||
|
@ -248,7 +248,7 @@ ambiclimate==0.2.1
|
|||||||
amcrest==1.7.0
|
amcrest==1.7.0
|
||||||
|
|
||||||
# homeassistant.components.androidtv
|
# homeassistant.components.androidtv
|
||||||
androidtv==0.0.41
|
androidtv==0.0.43
|
||||||
|
|
||||||
# homeassistant.components.anel_pwrctrl
|
# homeassistant.components.anel_pwrctrl
|
||||||
anel_pwrctrl-homeassistant==0.0.1.dev2
|
anel_pwrctrl-homeassistant==0.0.1.dev2
|
||||||
|
@ -125,7 +125,7 @@ airly==0.0.2
|
|||||||
ambiclimate==0.2.1
|
ambiclimate==0.2.1
|
||||||
|
|
||||||
# homeassistant.components.androidtv
|
# homeassistant.components.androidtv
|
||||||
androidtv==0.0.41
|
androidtv==0.0.43
|
||||||
|
|
||||||
# homeassistant.components.apns
|
# homeassistant.components.apns
|
||||||
apns2==0.3.0
|
apns2==0.3.0
|
||||||
|
@ -31,9 +31,9 @@ from homeassistant.const import (
|
|||||||
CONF_NAME,
|
CONF_NAME,
|
||||||
CONF_PLATFORM,
|
CONF_PLATFORM,
|
||||||
SERVICE_VOLUME_SET,
|
SERVICE_VOLUME_SET,
|
||||||
STATE_IDLE,
|
|
||||||
STATE_OFF,
|
STATE_OFF,
|
||||||
STATE_PLAYING,
|
STATE_PLAYING,
|
||||||
|
STATE_STANDBY,
|
||||||
STATE_UNAVAILABLE,
|
STATE_UNAVAILABLE,
|
||||||
)
|
)
|
||||||
from homeassistant.setup import async_setup_component
|
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 will be the last known state
|
||||||
state = hass.states.get(entity_id)
|
state = hass.states.get(entity_id)
|
||||||
if patch_key == "server":
|
if patch_key == "server":
|
||||||
assert state.state == STATE_IDLE
|
assert state.state == STATE_STANDBY
|
||||||
else:
|
else:
|
||||||
assert state.state == STATE_OFF
|
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)
|
await hass.helpers.entity_component.async_update_entity(entity_id)
|
||||||
state = hass.states.get(entity_id)
|
state = hass.states.get(entity_id)
|
||||||
assert state is not None
|
assert state is not None
|
||||||
assert state.state == STATE_IDLE
|
assert state.state == STATE_STANDBY
|
||||||
|
|
||||||
if patch_key == "python":
|
if patch_key == "python":
|
||||||
assert (
|
assert (
|
||||||
@ -879,7 +879,7 @@ async def test_update_lock_not_acquired(hass):
|
|||||||
await hass.helpers.entity_component.async_update_entity(entity_id)
|
await hass.helpers.entity_component.async_update_entity(entity_id)
|
||||||
state = hass.states.get(entity_id)
|
state = hass.states.get(entity_id)
|
||||||
assert state is not None
|
assert state is not None
|
||||||
assert state.state == STATE_IDLE
|
assert state.state == STATE_STANDBY
|
||||||
|
|
||||||
|
|
||||||
async def test_download(hass):
|
async def test_download(hass):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user