mirror of
https://github.com/home-assistant/core.git
synced 2026-09-12 19:49:41 +01:00
18 lines
464 B
Python
18 lines
464 B
Python
"""Test the Tessie update platform."""
|
|
from homeassistant.const import STATE_ON
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
from .common import setup_platform
|
|
|
|
|
|
async def test_updates(hass: HomeAssistant) -> None:
|
|
"""Tests that update entity is correct."""
|
|
|
|
assert len(hass.states.async_all("update")) == 0
|
|
|
|
await setup_platform(hass)
|
|
|
|
assert len(hass.states.async_all("update")) == 1
|
|
|
|
assert hass.states.get("update.test").state == STATE_ON
|