Skip to content

Commit cdd6988

Browse files
authored
Merge pull request #35 from raman325/fix_pylint
Fix pylint error from PR #31
2 parents 179ec4c + 9f76f18 commit cdd6988

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

custom_components/pyscript/config_flow.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
"""Config flow for pyscript."""
2+
from typing import Any, Dict
3+
24
import voluptuous as vol
35

46
from 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

0 commit comments

Comments
 (0)