mirror of
https://github.com/home-assistant/core.git
synced 2026-09-26 09:23:17 -04:00
Remove unused hass.data[DOMAIN] from remote_calendar (#181121)
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
"""The Remote Calendar integration."""
|
||||
# pylint: disable=home-assistant-use-runtime-data # Uses legacy hass.data[DOMAIN] pattern
|
||||
|
||||
import logging
|
||||
|
||||
from homeassistant.const import Platform
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from .const import DOMAIN
|
||||
from .coordinator import RemoteCalendarConfigEntry, RemoteCalendarDataUpdateCoordinator
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
@@ -19,7 +17,6 @@ async def async_setup_entry(
|
||||
hass: HomeAssistant, entry: RemoteCalendarConfigEntry
|
||||
) -> bool:
|
||||
"""Set up Remote Calendar from a config entry."""
|
||||
hass.data.setdefault(DOMAIN, {})
|
||||
coordinator = RemoteCalendarDataUpdateCoordinator(hass, entry)
|
||||
await coordinator.async_config_entry_first_refresh()
|
||||
entry.runtime_data = coordinator
|
||||
|
||||
Reference in New Issue
Block a user