Add missing dependencies to yale (#124821)

* Add missing dependencies to yale

* try another way

* Revert "try another way"

This reverts commit fbb731a334.

* patch out cloud setup
pull/124880/head
J. Nick Koston 2024-08-28 12:28:41 -10:00 committed by Bram Kragten
parent e8b722f7b2
commit 71de50dae8
2 changed files with 14 additions and 0 deletions

View File

@ -3,6 +3,7 @@
"name": "Yale", "name": "Yale",
"codeowners": ["@bdraco"], "codeowners": ["@bdraco"],
"config_flow": true, "config_flow": true,
"dependencies": ["application_credentials", "cloud"],
"dhcp": [ "dhcp": [
{ {
"hostname": "yale-connect-plus", "hostname": "yale-connect-plus",

View File

@ -57,3 +57,16 @@ def load_reauth_jwt_wrong_account_fixture() -> str:
async def mock_client_credentials_fixture(hass: HomeAssistant) -> None: async def mock_client_credentials_fixture(hass: HomeAssistant) -> None:
"""Mock client credentials.""" """Mock client credentials."""
await mock_client_credentials(hass) await mock_client_credentials(hass)
@pytest.fixture(name="skip_cloud", autouse=True)
def skip_cloud_fixture():
"""Skip setting up cloud.
Cloud already has its own tests for account link.
We do not need to test it here as we only need to test our
usage of the oauth2 helpers.
"""
with patch("homeassistant.components.cloud.async_setup", return_value=True):
yield