File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
custom_components/pyscript Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11"""Config flow for pyscript."""
2+ from typing import Any , Dict
3+
24import voluptuous as vol
35
46from homeassistant import config_entries
@@ -16,7 +18,7 @@ class PyscriptConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
1618 VERSION = 1
1719 CONNECTION_CLASS = config_entries .CONN_CLASS_LOCAL_PUSH
1820
19- async def async_step_user (self , user_input ) :
21+ async def async_step_user (self , user_input : Dict [ str , Any ] = None ) -> None :
2022 """Handle a flow initialized by the user."""
2123 if user_input is not None :
2224 if len (self .hass .config_entries .async_entries (DOMAIN )) > 0 :
@@ -27,7 +29,7 @@ async def async_step_user(self, user_input):
2729
2830 return self .async_show_form (step_id = "user" , data_schema = PYSCRIPT_SCHEMA )
2931
30- async def async_step_import (self , import_config ) :
32+ async def async_step_import (self , import_config : Dict [ str , Any ] = None ) -> None :
3133 """Import a config entry from configuration.yaml."""
3234 # Check if import config entry matches any existing config entries
3335 # so we can update it if necessary
You can’t perform that action at this time.
0 commit comments