mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Fix broken 2fa authentication in synology_dsm (#42775)
This commit is contained in:
parent
391a5447d3
commit
3e0fd99616
@ -271,10 +271,9 @@ class SynoApi:
|
|||||||
self._entry.data[CONF_SSL],
|
self._entry.data[CONF_SSL],
|
||||||
self._entry.data[CONF_VERIFY_SSL],
|
self._entry.data[CONF_VERIFY_SSL],
|
||||||
timeout=self._entry.options.get(CONF_TIMEOUT),
|
timeout=self._entry.options.get(CONF_TIMEOUT),
|
||||||
|
device_token=self._entry.data.get("device_token"),
|
||||||
)
|
)
|
||||||
await self._hass.async_add_executor_job(
|
await self._hass.async_add_executor_job(self.dsm.login)
|
||||||
self.dsm.login, self._entry.data.get("device_token")
|
|
||||||
)
|
|
||||||
|
|
||||||
self._with_surveillance_station = bool(
|
self._with_surveillance_station = bool(
|
||||||
self.dsm.apis.get(SynoSurveillanceStation.CAMERA_API_KEY)
|
self.dsm.apis.get(SynoSurveillanceStation.CAMERA_API_KEY)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user