mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
Fix small type issue [synology_dsm] (#75762)
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user