Update vizio dependency and integration name (#31975)
* bump pyvizio version and clean up code * fix requirements * update parameter to optional per review in docs PR
This commit is contained in:
1 parent
51b2d0b4f8
commit
7a6b13cb0d
10 files changed
+46
-27
No files matched your search
@@ -53,7 +53,7 @@ def vizio_bypass_setup_fixture():
|
||||
def vizio_bypass_update_fixture():
|
||||
"""Mock component update."""
|
||||
with patch(
|
||||
"homeassistant.components.vizio.media_player.VizioAsync.can_connect",
|
||||
"homeassistant.components.vizio.media_player.VizioAsync.can_connect_with_auth_check",
|
||||
return_value=True,
|
||||
), patch("homeassistant.components.vizio.media_player.VizioDevice.async_update"):
|
||||
yield
|
||||
@@ -71,7 +71,7 @@ def vizio_guess_device_type_fixture():
|
||||
|
||||
@pytest.fixture(name="vizio_cant_connect")
|
||||
def vizio_cant_connect_fixture():
|
||||
"""Mock vizio device can't connect."""
|
||||
"""Mock vizio device can't connect with valid auth."""
|
||||
with patch(
|
||||
"homeassistant.components.vizio.config_flow.VizioAsync.validate_ha_config",
|
||||
return_value=False,
|
||||
@@ -83,7 +83,7 @@ def vizio_cant_connect_fixture():
|
||||
def vizio_update_fixture():
|
||||
"""Mock valid updates to vizio device."""
|
||||
with patch(
|
||||
"homeassistant.components.vizio.media_player.VizioAsync.can_connect",
|
||||
"homeassistant.components.vizio.media_player.VizioAsync.can_connect_with_auth_check",
|
||||
return_value=True,
|
||||
), patch(
|
||||
"homeassistant.components.vizio.media_player.VizioAsync.get_current_volume",
|
||||
@@ -98,7 +98,7 @@ def vizio_update_fixture():
|
||||
"homeassistant.components.vizio.media_player.VizioAsync.get_power_state",
|
||||
return_value=True,
|
||||
), patch(
|
||||
"homeassistant.components.vizio.media_player.VizioAsync.get_model",
|
||||
"homeassistant.components.vizio.media_player.VizioAsync.get_model_name",
|
||||
return_value=MODEL,
|
||||
), patch(
|
||||
"homeassistant.components.vizio.media_player.VizioAsync.get_version",
|
||||
|
||||
Reference in new issue
Block a user