mirror of
https://github.com/home-assistant/core.git
synced 2026-01-22 07:19:41 +00:00
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
22 lines
742 B
Python
22 lines
742 B
Python
"""The tests for the WSDOT platform."""
|
|
|
|
from homeassistant.config_entries import ConfigEntryState
|
|
from homeassistant.core import HomeAssistant
|
|
from homeassistant.helpers import issue_registry as ir
|
|
|
|
from tests.common import MockConfigEntry
|
|
|
|
|
|
async def test_travel_sensor_setup_no_auth(
|
|
hass: HomeAssistant,
|
|
mock_config_entry: MockConfigEntry,
|
|
mock_failed_travel_time: None,
|
|
issue_registry: ir.IssueRegistry,
|
|
) -> None:
|
|
"""Test the wsdot Travel Time sensor does not create an entry with a bad API key."""
|
|
mock_config_entry.add_to_hass(hass)
|
|
await hass.config_entries.async_setup(mock_config_entry.entry_id)
|
|
await hass.async_block_till_done()
|
|
|
|
assert mock_config_entry.state is ConfigEntryState.SETUP_ERROR
|