When maintaining an IoT integration, testing a normal API response is only part of the job. What happens when the device becomes unavailable, returns an HTTP 503, or recovers with a different value?
I'm building FixtureKit , an experimental open-source Python toolkit (Apache-2.0) for reviewed test fixtures and repeatable regression scenarios. Here is a small example you can run without a device or Home Assistant.
1. Get the synthetic scenario
Download Scenario Preview P2 and its SHA-256 checksum . Verify the ZIP before extracting it to a new directory. On macOS/Linux, from the download directory:
shasum -a 256 -c fixturekit-scenario-preview-p2.zip.sha256
Enter fullscreen mode
Exit fullscreen mode
From the extracted directory, create a Python 3.12 environment:
python3.12 -m venv .venv .venv/bin/python -m pip install --require-hashes --only-binary=:all: -r examples/scenario/requirements-offline.txt .venv/bin/python -m examples.scenario.offline_regression --manifest…