Skip to content

Commit 9f76f18

Browse files
committed
remove Optional since it is not necessary
1 parent ce77ac6 commit 9f76f18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

custom_components/pyscript/config_flow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Config flow for pyscript."""
2-
from typing import Any, Dict, Optional
2+
from typing import Any, Dict
33

44
import voluptuous as vol
55

@@ -18,7 +18,7 @@ class PyscriptConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
1818
VERSION = 1
1919
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_PUSH
2020

21-
async def async_step_user(self, user_input: Optional[Dict[str, Any]] = None) -> None:
21+
async def async_step_user(self, user_input: Dict[str, Any] = None) -> None:
2222
"""Handle a flow initialized by the user."""
2323
if user_input is not None:
2424
if len(self.hass.config_entries.async_entries(DOMAIN)) > 0:
@@ -29,7 +29,7 @@ async def async_step_user(self, user_input: Optional[Dict[str, Any]] = None) ->
2929

3030
return self.async_show_form(step_id="user", data_schema=PYSCRIPT_SCHEMA)
3131

32-
async def async_step_import(self, import_config: Optional[Dict[str, Any]] = None) -> None:
32+
async def async_step_import(self, import_config: Dict[str, Any] = None) -> None:
3333
"""Import a config entry from configuration.yaml."""
3434
# Check if import config entry matches any existing config entries
3535
# so we can update it if necessary

0 commit comments

Comments
 (0)