File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
custom_components/processor Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 3
3
4
4
"""
5
5
DOMAIN = 'processor'
6
- from homeassistant .helpers import discovery
7
6
import logging
8
7
from homeassistant .helpers .entity_component import EntityComponent
9
8
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
13
10
import asyncio
14
11
# from homeassistant.compoennts.alert import Alert
15
12
_LOGGER = logging .getLogger (__name__ )
@@ -32,9 +29,8 @@ async def async_setup(hass, config):
32
29
_LOGGER .info (" loading platforms" )
33
30
34
31
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
+
38
34
_LOGGER .info ("after loading platforms" )
39
35
await component .async_setup (config ) # is this line required?
40
36
You can’t perform that action at this time.
0 commit comments