mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-19 23:36:28 +00:00
Add imports for syrup example code snippets (#1716)
This commit is contained in:
parent
cf2d43a808
commit
3010fca7f5
@ -135,6 +135,10 @@ This is a snapshot test that asserts the output of an entity state:
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
# tests/components/example/test_sensor.py
|
# tests/components/example/test_sensor.py
|
||||||
|
from homeassistant.core import HomeAssistant
|
||||||
|
from syrupy.assertion import SnapshotAssertion
|
||||||
|
|
||||||
|
|
||||||
async def test_sensor(
|
async def test_sensor(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
snapshot: SnapshotAssertion,
|
snapshot: SnapshotAssertion,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user