mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Fix small type issue [synology_dsm] (#75762)
This commit is contained in:
parent
eaee923e4c
commit
0006629ca2
@ -383,7 +383,7 @@ class SynologyDSMOptionsFlowHandler(OptionsFlow):
|
||||
return self.async_show_form(step_id="init", data_schema=data_schema)
|
||||
|
||||
|
||||
def _login_and_fetch_syno_info(api: SynologyDSM, otp_code: str) -> str:
|
||||
def _login_and_fetch_syno_info(api: SynologyDSM, otp_code: str | None) -> str:
|
||||
"""Login to the NAS and fetch basic data."""
|
||||
# These do i/o
|
||||
api.login(otp_code)
|
||||
|
Loading…
x
Reference in New Issue
Block a user