The suite was never run in CI (only hassfest/HACS), and requirements-dev listed only pytest + smartthings-local while conftest.py needs the full Home Assistant test harness. - requirements-dev.txt: add pytest-homeassistant-custom-component (pulls in home-assistant + pytest + pytest-socket) and the integration's runtime deps (cbor2, pyOpenSSL, cryptography) needed to import it. - .github/workflows/validate.yml: add a Pytest job on Python 3.14 (current Home Assistant's floor) that installs requirements-dev and runs the suite. - test_config_flow.py: the UDP liveness-sweep test needs real loopback sockets, which the HA harness blocks by default; take the pytest-socket socket_enabled fixture so it runs instead of erroring. Full suite: 249 passed.
12 lines
476 B
Plaintext
12 lines
476 B
Plaintext
# Test harness — pulls in home-assistant, pytest, and pytest-socket at the
|
|
# matching versions. Current Home Assistant requires Python >= 3.14; pip will
|
|
# resolve the newest home-assistant your interpreter supports.
|
|
pytest-homeassistant-custom-component>=0.13.316
|
|
|
|
# Integration runtime deps, needed to import the component under test
|
|
# (also declared in custom_components/localthings/manifest.json).
|
|
smartthings-local>=0.1.0
|
|
cbor2>=5.4.6
|
|
pyOpenSSL>=23.0
|
|
cryptography>=41.0
|