Add config entry for Met.no (#24608)
* Add config entry for Met.no * Fixed tests
This commit is contained in:
1 parent
f382be4c15
commit
a89c8eeabe
9 files changed
+298
-4
No files matched your search
@@ -1 +1,23 @@
|
||||
"""The met component."""
|
||||
from homeassistant.core import Config, HomeAssistant
|
||||
from .config_flow import MetFlowHandler # noqa
|
||||
from .const import DOMAIN # noqa
|
||||
|
||||
|
||||
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
|
||||
Reference in new issue
Block a user