Skip to content

Commit 8f2c990

Browse files
committed
⬆️ Improve type hinting for fixture data in hot water tests
1 parent 4c5be85 commit 8f2c990

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_hot_water_additional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async def test_hot_water_config(
4848
bsblan.set_hot_water_cache(hot_water_cache)
4949

5050
# Mock the request response
51-
fixture_data = json.loads(load_fixture("hot_water_state.json"))
51+
fixture_data: dict[str, Any] = json.loads(load_fixture("hot_water_state.json"))
5252

5353
def mock_request(**kwargs: Any) -> dict[str, Any]:
5454
param_string = kwargs.get("params", {}).get("Parameter", "")

tests/test_hotwater_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async def test_hot_water_state(
6565
bsblan.set_hot_water_cache(hot_water_cache)
6666

6767
# Mock the request response to only return requested parameters
68-
fixture_data = json.loads(load_fixture("hot_water_state.json"))
68+
fixture_data: dict[str, Any] = json.loads(load_fixture("hot_water_state.json"))
6969

7070
def mock_request(**kwargs: Any) -> dict[str, Any]:
7171
# Extract requested parameter IDs from the Parameter query

0 commit comments

Comments
 (0)