mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-17 06:16: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
|
||||
# tests/components/example/test_sensor.py
|
||||
from homeassistant.core import HomeAssistant
|
||||
from syrupy.assertion import SnapshotAssertion
|
||||
|
||||
|
||||
async def test_sensor(
|
||||
hass: HomeAssistant,
|
||||
snapshot: SnapshotAssertion,
|
||||
|
Loading…
x
Reference in New Issue
Block a user