Skip to content

Commit 48ebf7c

Browse files
committed
tests: fix patch
1 parent e369af6 commit 48ebf7c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed
+6-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"domain": "myheat",
33
"name": "MyHeat",
4-
"integration_type": "device",
5-
"documentation": "https://github.com/vooon/hass-myheat",
6-
"issue_tracker": "https://github.com/vooon/hass-myheat/issues",
7-
"dependencies": [],
8-
"config_flow": true,
94
"codeowners": ["@vooon"],
10-
"requirements": [],
5+
"config_flow": true,
6+
"dependencies": [],
7+
"documentation": "https://github.com/vooon/hass-myheat",
8+
"integration_type": "device",
119
"iot_class": "cloud_polling",
10+
"issue_tracker": "https://github.com/vooon/hass-myheat/issues",
1211
"loggers": ["myheat"],
12+
"requirements": [],
1313
"version": "0.2.0"
1414
}

tests/conftest.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def skip_notifications_fixture():
2424
@pytest.fixture(name="bypass_get_data")
2525
def bypass_get_data_fixture():
2626
"""Skip calls to get data from API."""
27-
with patch("custom_components.myheat.MhApiClient.async_get_data"):
27+
with patch("custom_components.myheat.MhApiClient.rpc"):
2828
yield
2929

3030

@@ -34,7 +34,7 @@ def bypass_get_data_fixture():
3434
def error_get_data_fixture():
3535
"""Simulate error when retrieving data from API."""
3636
with patch(
37-
"custom_components.myheat.MhApiClient.async_get_data",
37+
"custom_components.myheat.MhApiClient.rpc",
3838
side_effect=Exception,
3939
):
4040
yield

0 commit comments

Comments
 (0)