diff --git a/custom_components/pyscript/config_flow.py b/custom_components/pyscript/config_flow.py index d91b636..fbe113e 100644 --- a/custom_components/pyscript/config_flow.py +++ b/custom_components/pyscript/config_flow.py @@ -1,4 +1,6 @@ """Config flow for pyscript.""" +from typing import Any, Dict + import voluptuous as vol from homeassistant import config_entries @@ -16,7 +18,7 @@ class PyscriptConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_PUSH - async def async_step_user(self, user_input): + async def async_step_user(self, user_input: Dict[str, Any] = None) -> None: """Handle a flow initialized by the user.""" if user_input is not None: if len(self.hass.config_entries.async_entries(DOMAIN)) > 0: @@ -27,7 +29,7 @@ async def async_step_user(self, user_input): return self.async_show_form(step_id="user", data_schema=PYSCRIPT_SCHEMA) - async def async_step_import(self, import_config): + async def async_step_import(self, import_config: Dict[str, Any] = None) -> None: """Import a config entry from configuration.yaml.""" # Check if import config entry matches any existing config entries # so we can update it if necessary