Add repair for legacy subscription to cloud integration (#82621)

This commit is contained in:
Joakim Sørensen 2022-11-28 23:35:24 +01:00 committed by GitHub
parent 82b2aaaa3e
commit 7c82b78f8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 442 additions and 14 deletions

View file

@ -52,6 +52,15 @@ def mock_cloud_login(hass, mock_cloud_setup):
yield
@pytest.fixture(name="mock_auth")
def mock_auth_fixture():
"""Mock check token."""
with patch("hass_nabucasa.auth.CognitoAuth.async_check_token"), patch(
"hass_nabucasa.auth.CognitoAuth.async_renew_access_token"
):
yield
@pytest.fixture
def mock_expired_cloud_login(hass, mock_cloud_setup):
"""Mock cloud is logged in."""