Skip to content

Commit

Permalink
Merge pull request #34 from hasscc/main
Browse files Browse the repository at this point in the history
Sync Main with Tests
  • Loading branch information
milosljubenovic authored Sep 4, 2024
2 parents 9dda352 + 550c48d commit 96b4946
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions custom_components/catlink/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from homeassistant.const import CONF_DEVICES, CONF_PASSWORD, CONF_TOKEN
from homeassistant.core import HomeAssistant
from homeassistant.helpers.discovery import async_load_platform
from homeassistant.helpers.entity_component import EntityComponent

from .const import _LOGGER, CONF_ACCOUNTS, DOMAIN, SCAN_INTERVAL, SUPPORTED_DOMAINS
Expand Down Expand Up @@ -39,8 +40,6 @@ async def async_setup(hass: HomeAssistant, hass_config: dict) -> bool:
hass.data[DOMAIN]["coordinators"][coordinator.name] = coordinator

for platform in SUPPORTED_DOMAINS:
hass.async_create_task(
hass.helpers.discovery.async_load_platform(platform, DOMAIN, {}, config)
)
hass.async_create_task(async_load_platform(hass, platform, DOMAIN, {}, config))

return True

0 comments on commit 96b4946

Please sign in to comment.