Skip to content

Commit 8c618ca

Browse files
committed
chore: Add types-pyyaml
1 parent acdc98d commit 8c618ca

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ repos:
4242
hooks:
4343
- id: mypy
4444
exclude: cli.py
45-
additional_dependencies: [ "types-paho-mqtt" ]
45+
additional_dependencies: [ "types-paho-mqtt", "types-pyyaml" ]
4646
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
4747
rev: v9.23.0
4848
hooks:

tests/devices/traits/v1/fixtures.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,7 @@ def mock_app_get_init_status_fixture(device_info: HomeDataDevice, products: list
118118
product = next(filter(lambda product: product.id == device_info.product_id, products))
119119
if not product:
120120
raise ValueError(f"Product {device_info.product_id} not found")
121-
device_info_data = mock_data.DEVICE_INFO.get(product.model)
122-
if device_info_data is None:
123-
return mock_data.APP_GET_INIT_STATUS
121+
device_info_data = mock_data.DEVICE_INFO.get(product.model, {})
124122
return {
125123
**mock_data.APP_GET_INIT_STATUS,
126124
**device_info_data,

0 commit comments

Comments
 (0)