Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
"Config" is deprecated and will be removed in HA Core 2025.11
  • Loading branch information
dscao authored Jan 5, 2025
1 parent 1fd8c99 commit 65b0fc2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion custom_components/ikuai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
from async_timeout import timeout
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import Platform
from homeassistant.core import HomeAssistant, Config
from homeassistant.core import HomeAssistant
from homeassistant.core_config import Config
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
from .data_fetcher import DataFetcher
from .const import (
Expand Down Expand Up @@ -55,6 +56,10 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
UNDO_UPDATE_LISTENER: undo_listener,
}

# for component in PLATFORMS:
# hass.async_create_task(
# hass.config_entries.async_forward_entry_setup(entry, component)
# )
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

return True
Expand Down

0 comments on commit 65b0fc2

Please sign in to comment.