Bump adb-shell to 0.1.0 and androidtv to 0.0.36 (#29938)

* Bump adb-shell to 0.1.0 and androidtv to 0.0.36

* Add test for setting up two devices

* Add test_setup_same_device_twice

* Fix test_setup_two_devices

* Fix coverage

* Coverage

* Fix flaky 'test_setup_two_devices'

* Another stab at coverage

* Rename 'address' back to 'host'
This commit is contained in:
Jeff Irion authored and Fabian Affolter committed 2019-12-15 11:31:59 +01:00
1 parent a28545b69b
commit 8a5bce81c8
6 files changed
+96 -28

No files matched your search

@@ -3,8 +3,8 @@
"name": "Androidtv",
"documentation": "https://www.home-assistant.io/integrations/androidtv",
"requirements": [
"adb-shell==0.0.9",
"androidtv==0.0.35",
"adb-shell==0.1.0",
"androidtv==0.0.36",
"pure-python-adb==0.2.2.dev0"
],
"dependencies": [],
@@ -146,7 +146,8 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
adb_log = f"using Python ADB implementation with adbkey='{adbkey}'"
aftv = setup(
host,
config[CONF_HOST],
config[CONF_PORT],
adbkey,
device_class=config[CONF_DEVICE_CLASS],
state_detection_rules=config[CONF_STATE_DETECTION_RULES],
@@ -159,7 +160,8 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
)
aftv = setup(
host,
config[CONF_HOST],
config[CONF_PORT],
config[CONF_ADBKEY],
device_class=config[CONF_DEVICE_CLASS],
state_detection_rules=config[CONF_STATE_DETECTION_RULES],
@@ -171,7 +173,8 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
adb_log = f"using ADB server at {config[CONF_ADB_SERVER_IP]}:{config[CONF_ADB_SERVER_PORT]}"
aftv = setup(
host,
config[CONF_HOST],
config[CONF_PORT],
adb_server_ip=config[CONF_ADB_SERVER_IP],
adb_server_port=config[CONF_ADB_SERVER_PORT],
device_class=config[CONF_DEVICE_CLASS],