Home

Awesome

pytest-homeassistant-custom-component

HA core version

Open in Gitpod

Package to automatically extract testing plugins from Home Assistant for custom component testing. The goal is to provide the same functionality as the tests in home-assistant/core. pytest-homeassistant-custom-component is updated daily according to the latest homeassistant release including beta.

Usage:

tests/
   fixtures/
      some_data.json
   test_sensor.py

Examples:

More Info

This repository is set up to be nearly fully automatic.

Version Strategy

This package was inspired by pytest-homeassistant by @boralyl, but is intended to more closely and automatically track the home-assistant/core library.