Fix small type issue [synology_dsm] (#75762)

This commit is contained in:
Marc Mueller
2022-07-26 12:26:31 +02:00
committed by GitHub
parent eaee923e4c
commit 0006629ca2

View File

@@ -383,7 +383,7 @@ class SynologyDSMOptionsFlowHandler(OptionsFlow):
return self.async_show_form(step_id="init", data_schema=data_schema) 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.""" """Login to the NAS and fetch basic data."""
# These do i/o # These do i/o
api.login(otp_code) api.login(otp_code)