Remove last references to hass.data[UNIFI_DOMAIN] (#122642)

This commit is contained in:
Robert Svensson 2024-07-26 12:29:21 +02:00 committed by GitHub
parent 047100069b
commit 33ea67e1d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,6 @@ from homeassistant.components.unifi.const import (
CONF_ALLOW_UPTIME_SENSORS,
CONF_TRACK_CLIENTS,
CONF_TRACK_DEVICES,
DOMAIN as UNIFI_DOMAIN,
)
from homeassistant.components.unifi.errors import AuthenticationRequired, CannotConnect
from homeassistant.config_entries import ConfigEntry, ConfigEntryState
@ -27,12 +26,6 @@ from tests.common import flush_store
from tests.typing import WebSocketGenerator
async def test_setup_with_no_config(hass: HomeAssistant) -> None:
"""Test that we do not discover anything or try to set up a hub."""
assert await async_setup_component(hass, UNIFI_DOMAIN, {}) is True
assert UNIFI_DOMAIN not in hass.data
async def test_setup_entry_fails_config_entry_not_ready(
config_entry_factory: Callable[[], ConfigEntry],
) -> None: