init home-assistant
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
"""Tests for the Tankerkoening integration."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import pytest
|
||||
from syrupy import SnapshotAssertion
|
||||
|
||||
from homeassistant.const import STATE_ON
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
|
||||
@pytest.mark.usefixtures("setup_integration")
|
||||
async def test_binary_sensor(
|
||||
hass: HomeAssistant,
|
||||
config_entry: MockConfigEntry,
|
||||
snapshot: SnapshotAssertion,
|
||||
) -> None:
|
||||
"""Test the tankerkoenig binary sensors."""
|
||||
|
||||
state = hass.states.get("binary_sensor.station_somewhere_street_1_status")
|
||||
assert state
|
||||
assert state.state == STATE_ON
|
||||
assert state.attributes == snapshot
|
||||
Reference in New Issue
Block a user