Set up Met during onboarding (#24622)
* Set up Met during onboarding * Lint * Add pyMetNo to test reqs
This commit is contained in:
1 parent
6ea92f86a5
commit
f2962a0d16
12 files changed
+242
-54
No files matched your search
@@ -7,7 +7,7 @@ from homeassistant.const import (
|
||||
from homeassistant.core import callback
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
from .const import DOMAIN, HOME_LOCATION_NAME
|
||||
from .const import DOMAIN, HOME_LOCATION_NAME, CONF_TRACK_HOME
|
||||
|
||||
|
||||
@callback
|
||||
@@ -61,3 +61,12 @@ class MetFlowHandler(data_entry_flow.FlowHandler):
|
||||
}),
|
||||
errors=self._errors,
|
||||
)
|
||||
|
||||
async def async_step_onboarding(self, data=None):
|
||||
"""Handle a flow initialized by onboarding."""
|
||||
return self.async_create_entry(
|
||||
title=HOME_LOCATION_NAME,
|
||||
data={
|
||||
CONF_TRACK_HOME: True
|
||||
}
|
||||
)
|
||||
Reference in new issue
Block a user