Bump pyipma to 3.0.2 (#76332)
* upgrade to pyipma 3.0.0 * bump to support python3.9 * remove deprecated async_setup_platform * full coverage * add migrate
This commit is contained in:
parent
e5eddba223
commit
f98e86d3a6
7 changed files with 205 additions and 171 deletions
|
@ -18,6 +18,13 @@ class IpmaFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
"""Init IpmaFlowHandler."""
|
||||
self._errors = {}
|
||||
|
||||
async def async_step_import(self, config):
|
||||
"""Import a configuration from config.yaml."""
|
||||
|
||||
self._async_abort_entries_match(config)
|
||||
config[CONF_MODE] = "daily"
|
||||
return await self.async_step_user(user_input=config)
|
||||
|
||||
async def async_step_user(self, user_input=None):
|
||||
"""Handle a flow initialized by the user."""
|
||||
self._errors = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue