mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
Consolidate warnings for fixtures missing child devices (#1251)
This commit is contained in:
parent
3086aa8a20
commit
9efe871814
@ -200,10 +200,9 @@ class FakeSmartTransport(BaseTransport):
|
|||||||
is_child=True,
|
is_child=True,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
warn(
|
pytest.fixtures_missing_methods.setdefault( # type: ignore[attr-defined]
|
||||||
f"Could not find child SMART fixture for {child_info}",
|
parent_fixture_name, set()
|
||||||
stacklevel=2,
|
).add("child_devices")
|
||||||
)
|
|
||||||
else:
|
else:
|
||||||
warn(
|
warn(
|
||||||
f"Child is a cameraprotocol which needs to be implemented {child_info}",
|
f"Child is a cameraprotocol which needs to be implemented {child_info}",
|
||||||
|
Loading…
Reference in New Issue
Block a user