homekit_controller fixes from testing with an LG TV: (#32610)

* Bump aiohomekit to get better reconnection handling and cleaner shutdowns.
 * Read the ACTIVE characteristic and set ok/problem state

Also gets test coverage to 100%.
This commit is contained in:
Jc2k authored and GitHub committed 2020-03-09 12:19:17 -04:00
1 parent 22b5690607
commit 19faf06ce7
6 files changed
+42 -7

No files matched your search

@@ -50,6 +50,10 @@ async def test_lg_tv(hass):
SUPPORT_PAUSE | SUPPORT_PLAY | SUPPORT_SELECT_SOURCE
)
# The LG TV doesn't (at least at this patch level) report its media state via
# CURRENT_MEDIA_STATE. Therefore "ok" is the best we can say.
assert state.state == "ok"
device_registry = await hass.helpers.device_registry.async_get_registry()
device = device_registry.async_get(entry.device_id)