Removed init information
This commit is contained in:
parent
921274bcb2
commit
98e0cd5121
@ -1,22 +0,0 @@
|
||||
import logging
|
||||
|
||||
from homeassistant import config_entries, core
|
||||
|
||||
from .const import DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
async def async_setup_entry(hass: core.HomeAssistant, entry: config_entries.ConfigEntry) -> bool:
|
||||
"""Set up platform from a ConfigEntry."""
|
||||
hass.data.setdefault(DOMAIN, {})
|
||||
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"))
|
||||
return True
|
||||
|
||||
|
||||
async def async_setup(hass: core.HomeAssistant, config: dict) -> bool:
|
||||
hass.data.setdefault(DOMAIN, {})
|
||||
return True
|
Reference in New Issue
Block a user