Fixed restorr of manual sensor #485
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Config flow tests | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| config-flow: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Install Home Assistant test deps | |
| run: | | |
| python -m pip install --upgrade pip | |
| # Install latest HA and test stack first | |
| python -m pip install homeassistant pytest pytest-asyncio pytest-homeassistant-custom-component paho-mqtt | |
| # Force compatible pycares/aiodns combo AFTER HA install to override any incompatible versions | |
| python -m pip uninstall -y pycares aiodns || true | |
| python -m pip install --no-binary=pycares "pycares==4.4.0" "aiodns==3.2.0" | |
| - name: Run mocked config/setup tests | |
| env: | |
| PYTHONPATH: "." | |
| run: pytest -q tests/test_config_flow.py |