Add imports for syrup example code snippets (#1716)

This commit is contained in:
Allen Porter 2023-03-16 08:02:25 -07:00 committed by GitHub
parent cf2d43a808
commit 3010fca7f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,6 +135,10 @@ This is a snapshot test that asserts the output of an entity state:
```python
# tests/components/example/test_sensor.py
from homeassistant.core import HomeAssistant
from syrupy.assertion import SnapshotAssertion
async def test_sensor(
hass: HomeAssistant,
snapshot: SnapshotAssertion,