Skip to content

Commit

Permalink
Merge pull request #143 from tykeal/mypy_fixes
Browse files Browse the repository at this point in the history
Refactor: Cleanup mypy errors
  • Loading branch information
tykeal authored Nov 9, 2022
2 parents 6522e10 + 0466764 commit 1d4b227
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions custom_components/rental_control/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def __init__(self, config_entry: config_entries.ConfigEntry):

async def async_step_init(
self,
user_input: Dict[str, Any] = None,
user_input: Optional[Dict[str, Any]] = None,
) -> Any:
"""Handle a flow initialized by the user."""
return await _start_config_flow(
Expand Down Expand Up @@ -197,7 +197,7 @@ def _get_schema(
hass: HomeAssistant,
user_input: Optional[Dict[str, Any]],
default_dict: Optional[Dict[str, Any]],
entry_id: str = None,
entry_id: Optional[str] = None,
) -> vol.Schema:
"""Gets a schema using the default_dict as a backup."""
if user_input is None:
Expand Down Expand Up @@ -298,8 +298,8 @@ def _show_config_form(
user_input: Optional[Dict[str, Any]],
errors: Dict[str, str],
description_placeholders: Dict[str, str],
defaults: Dict[str, Any] = None,
entry_id: str = None,
defaults: Optional[Dict[str, Any]] = None,
entry_id: Optional[str] = None,
) -> Any:
"""Show the configuration form to edit data."""
return cls.async_show_form(
Expand All @@ -315,8 +315,8 @@ async def _start_config_flow(
step_id: str,
title: str,
user_input: Optional[Dict[str, Any]],
defaults: Dict[str, Any] = None,
entry_id: str = None,
defaults: Optional[Dict[str, Any]] = None,
entry_id: Optional[str] = None,
):
"""Start a config flow."""
errors = {}
Expand Down

0 comments on commit 1d4b227

Please sign in to comment.