Skip to content

Fix pylint error from PR #31 #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions custom_components/pyscript/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Config flow for pyscript."""
from typing import Any, Dict

import voluptuous as vol

from homeassistant import config_entries
Expand All @@ -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:
Expand All @@ -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
Expand Down