hass-core/homeassistant/components/met/__init__.py
Ville Skyttä d88ca0f5cb Lint exclusions (#28655)
* Remove malformed pylint disable markers

* Remove some unused imports

* Remove some unneeded lint exclusions

* Remove more unneeded lint exclusions

* Add specific codes to all noqa's
2019-11-16 10:22:07 +01:00

23 lines
692 B
Python

"""The met component."""
from homeassistant.core import Config, HomeAssistant
from .config_flow import MetFlowHandler # noqa: F401
from .const import DOMAIN # noqa: F401
async def async_setup(hass: HomeAssistant, config: Config) -> bool:
"""Set up configured Met."""
return True
async def async_setup_entry(hass, config_entry):
"""Set up Met as config entry."""
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(config_entry, "weather")
)
return True
async def async_unload_entry(hass, config_entry):
"""Unload a config entry."""
await hass.config_entries.async_forward_entry_unload(config_entry, "weather")
return True