Bump androidtv to 0.0.28 (#26906)

* Bump androidtv to 0.0.28

* Address reviewer comments

* Remove adb-shell from requirements_test_all.txt

* Use a one-liner to avoid a coverage failure
This commit is contained in:
Jeff Irion authored and Martin Hjelmare committed 2019-09-27 07:53:26 +02:00
1 parent b04a70995e
commit 45c548ae47
6 files changed
+61 -52

No files matched your search

@@ -79,7 +79,9 @@ async def _test_reconnect(hass, caplog, config):
else:
entity_id = "media_player.fire_tv"
with patchers.patch_connect(True)[patch_key], patchers.patch_shell("")[patch_key]:
with patchers.PATCH_ADB_DEVICE, patchers.patch_connect(True)[
patch_key
], patchers.patch_shell("")[patch_key]:
assert await async_setup_component(hass, DOMAIN, config)
await hass.helpers.entity_component.async_update_entity(entity_id)
state = hass.states.get(entity_id)
@@ -151,7 +153,9 @@ async def _test_adb_shell_returns_none(hass, config):
else:
entity_id = "media_player.fire_tv"
with patchers.patch_connect(True)[patch_key], patchers.patch_shell("")[patch_key]:
with patchers.PATCH_ADB_DEVICE, patchers.patch_connect(True)[
patch_key
], patchers.patch_shell("")[patch_key]:
assert await async_setup_component(hass, DOMAIN, config)
await hass.helpers.entity_component.async_update_entity(entity_id)
state = hass.states.get(entity_id)