Skip to content

Commit

Permalink
Remove deprecated call to async_forward_entry_setup
Browse files Browse the repository at this point in the history
  • Loading branch information
morosanmihail committed Nov 27, 2024
1 parent 7d52d1b commit 3ec1fb2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions custom_components/london_tfl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
import logging

from homeassistant import config_entries, core
from homeassistant.const import Platform

from .const import DOMAIN


PLATFORMS = [Platform.SENSOR]

_LOGGER = logging.getLogger(__name__)


Expand All @@ -17,9 +20,7 @@ async def async_setup_entry(
hass.data[DOMAIN][entry.entry_id] = entry.data

# Forward the setup to the sensor platform.
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(entry, "sensor")
)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
return True


Expand Down

0 comments on commit 3ec1fb2

Please sign in to comment.