Skip to content
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

Attempt to fix config_entry warning #702

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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: 3 additions & 3 deletions custom_components/pyscript/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
class PyscriptOptionsConfigFlow(config_entries.OptionsFlow):
"""Handle a pyscript options flow."""

def __init__(self, config_entry: ConfigEntry) -> None:
def __init__(self) -> None:
"""Initialize pyscript options flow."""
self._config_entry = config_entry
self._conf_app_id: str | None = None
self._show_form = False

async def async_step_init(self, user_input: Dict[str, Any] = None) -> Dict[str, Any]:
Expand Down Expand Up @@ -88,7 +88,7 @@ class PyscriptConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
@callback
def async_get_options_flow(config_entry: ConfigEntry) -> PyscriptOptionsConfigFlow:
"""Get the options flow for this handler."""
return PyscriptOptionsConfigFlow(config_entry)
return PyscriptOptionsConfigFlow()

async def async_step_user(self, user_input: Dict[str, Any] = None) -> Dict[str, Any]:
"""Handle a flow initialized by the user."""
Expand Down