Commit abbe54d
ci: install integration requirements in the HA test job
Every tests_ha test failed at setup with reason='Import error'. The
integration itself imported fine - config_flow.py did not, because it
imports `serial` and `serial.tools.list_ports` at module level.
pytest-homeassistant-custom-component does not install a custom
integration's manifest.json requirements; Home Assistant does that
itself at runtime. So the harness had no pymodbus or pyserial, and
HA's platform loader reported the failure only as the opaque
"Platform growatt_modbus.config_flow not found".
The unit job already installed both explicitly. This matches it.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 3a09d55 commit abbe54d
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | | - | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
0 commit comments