Improve type hints in fritzbox config flow (#130509)
This commit is contained in:
parent
b78453b85b
commit
ab11b84678
1 changed files with 2 additions and 2 deletions
|
@ -43,10 +43,11 @@ class FritzboxConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||
|
||||
VERSION = 1
|
||||
|
||||
_name: str
|
||||
|
||||
def __init__(self) -> None:
|
||||
"""Initialize flow."""
|
||||
self._host: str | None = None
|
||||
self._name: str | None = None
|
||||
self._password: str | None = None
|
||||
self._username: str | None = None
|
||||
|
||||
|
@ -158,7 +159,6 @@ class FritzboxConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||
result = await self.async_try_connect()
|
||||
|
||||
if result == RESULT_SUCCESS:
|
||||
assert self._name is not None
|
||||
return self._get_entry(self._name)
|
||||
if result != RESULT_INVALID_AUTH:
|
||||
return self.async_abort(reason=result)
|
||||
|
|
Loading…
Add table
Reference in a new issue