1
0
mirror of https://github.com/home-assistant/core.git synced 2025-06-06 06:07:07 +00:00

23 lines
546 B
Python

"""Tests for myuplink update module."""
from unittest.mock import AsyncMock
from homeassistant.core import HomeAssistant
from . import setup_integration
from tests.common import MockConfigEntry
async def test_update_states(
hass: HomeAssistant,
mock_myuplink_client: AsyncMock,
mock_config_entry: MockConfigEntry,
) -> None:
"""Test update state."""
await setup_integration(hass, mock_config_entry)
state = hass.states.get("update.gotham_city_firmware")
assert state is not None
assert state.state == "off"