Skip to content

Commit 7127159

Browse files
joostlekbramkragten
authored andcommitted
Make Watts depend on the cloud integration (#160424)
1 parent 9f0eb6f commit 7127159

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

homeassistant/components/watts/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Watts Vision +",
44
"codeowners": ["@theobld-ww", "@devender-verma-ww", "@ssi-spyro"],
55
"config_flow": true,
6-
"dependencies": ["application_credentials"],
6+
"dependencies": ["application_credentials", "cloud"],
77
"documentation": "https://www.home-assistant.io/integrations/watts",
88
"iot_class": "cloud_polling",
99
"quality_scale": "bronze",

tests/components/watts/conftest.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,16 @@ def mock_config_entry() -> MockConfigEntry:
101101
entry_id="01J0BC4QM2YBRP6H5G933CETI8",
102102
unique_id=TEST_USER_ID,
103103
)
104+
105+
106+
@pytest.fixture(name="skip_cloud", autouse=True)
107+
def skip_cloud_fixture():
108+
"""Skip setting up cloud.
109+
110+
Cloud already has its own tests for account link.
111+
112+
We do not need to test it here as we only need to test our
113+
usage of the oauth2 helpers.
114+
"""
115+
with patch("homeassistant.components.cloud.async_setup", return_value=True):
116+
yield

0 commit comments

Comments
 (0)