Add missing test_all requirements (#142036)

Fix homeassistant_hardware handling and add missing test_all requirements
This commit is contained in:
Tomek Wasilczyk
2025-04-05 03:12:34 -07:00
committed by GitHub
parent 4ab31e2d4e
commit 1ab8deff3d
2 changed files with 8 additions and 1 deletions

View File

@ -266,7 +266,8 @@ def has_tests(module: str) -> bool:
Test if exists: tests/components/hue/__init__.py
"""
path = (
Path(module.replace(".", "/").replace("homeassistant", "tests")) / "__init__.py"
Path(module.replace(".", "/").replace("homeassistant", "tests", 1))
/ "__init__.py"
)
return path.exists()