Add config_flow to AndroidTV integration (#54444)
Co-authored-by: Robert Hillis <tkdrob4390@yahoo.com>
This commit is contained in:
parent
2dfd4c49da
commit
5a41251d45
14 changed files with 1850 additions and 535 deletions
|
@ -139,9 +139,9 @@ PATCH_ADB_DEVICE_TCP = patch(
|
|||
PATCH_ANDROIDTV_OPEN = patch(
|
||||
"homeassistant.components.androidtv.media_player.open", mock_open()
|
||||
)
|
||||
PATCH_KEYGEN = patch("homeassistant.components.androidtv.media_player.keygen")
|
||||
PATCH_KEYGEN = patch("homeassistant.components.androidtv.keygen")
|
||||
PATCH_SIGNER = patch(
|
||||
"homeassistant.components.androidtv.media_player.ADBPythonSync.load_adbkey",
|
||||
"homeassistant.components.androidtv.ADBPythonSync.load_adbkey",
|
||||
return_value="signer for testing",
|
||||
)
|
||||
|
||||
|
@ -151,10 +151,6 @@ def isfile(filepath):
|
|||
return filepath.endswith("adbkey")
|
||||
|
||||
|
||||
PATCH_ISFILE = patch("os.path.isfile", isfile)
|
||||
PATCH_ACCESS = patch("os.access", return_value=True)
|
||||
|
||||
|
||||
def patch_firetv_update(state, current_app, running_apps, hdmi_input):
|
||||
"""Patch the `FireTV.update()` method."""
|
||||
return patch(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue