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 1
1
"""Config flow for pyscript."""
2
+ from typing import Any , Dict
3
+
2
4
import voluptuous as vol
3
5
4
6
from homeassistant import config_entries
@@ -16,7 +18,7 @@ class PyscriptConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
16
18
VERSION = 1
17
19
CONNECTION_CLASS = config_entries .CONN_CLASS_LOCAL_PUSH
18
20
19
- async def async_step_user (self , user_input ) :
21
+ async def async_step_user (self , user_input : Dict [ str , Any ] = None ) -> None :
20
22
"""Handle a flow initialized by the user."""
21
23
if user_input is not None :
22
24
if len (self .hass .config_entries .async_entries (DOMAIN )) > 0 :
@@ -27,7 +29,7 @@ async def async_step_user(self, user_input):
27
29
28
30
return self .async_show_form (step_id = "user" , data_schema = PYSCRIPT_SCHEMA )
29
31
30
- async def async_step_import (self , import_config ) :
32
+ async def async_step_import (self , import_config : Dict [ str , Any ] = None ) -> None :
31
33
"""Import a config entry from configuration.yaml."""
32
34
# Check if import config entry matches any existing config entries
33
35
# so we can update it if necessary
You can’t perform that action at this time.
0 commit comments