Skip to content

Commit 5705f84

Browse files
authored
resolve 2025.5 warning
1 parent 3953234 commit 5705f84

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

custom_components/processor/__init__.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@
33
44
"""
55
DOMAIN = 'processor'
6-
from homeassistant.helpers import discovery
76
import logging
87
from homeassistant.helpers.entity_component import EntityComponent
98
from homeassistant.helpers.entity import Entity
10-
from homeassistant.core import HomeAssistant
11-
from homeassistant.helpers.typing import ConfigType
12-
from homeassistant.config_entries import ConfigEntry
9+
from homeassistant.helpers.discovery import load_platform
1310
import asyncio
1411
# from homeassistant.compoennts.alert import Alert
1512
_LOGGER = logging.getLogger(__name__)
@@ -32,9 +29,8 @@ async def async_setup(hass, config):
3229
_LOGGER.info(" loading platforms")
3330

3431
for platform in PLATFORMS:
35-
# hass.async_create_task(
36-
hass.helpers.discovery.load_platform(platform, DOMAIN, domain_config, config)
37-
# )
32+
load_platform(platform, DOMAIN, domain_config, config)
33+
3834
_LOGGER.info("after loading platforms")
3935
await component.async_setup(config) # is this line required?
4036

0 commit comments

Comments
 (0)