home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.03k stars 28.28k forks source link

Ensure all synology_dsm coordinators handle expired sessions #116796

Closed bdraco closed 1 week ago

bdraco commented 1 week ago

Proposed change

Ensure all synology_dsm coordinators handle expired sessions as only the main coordinator did.

seen in https://github.com/home-assistant/core/issues/116755#issuecomment-2094076518

Type of change

Additional information

Checklist

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

To help with the load of incoming pull requests:

home-assistant[bot] commented 1 week ago

Hey there @hacf-fr, @quentame, @mib1185, mind taking a look at this pull request as it has been labeled with an integration (synology_dsm) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `synology_dsm` can trigger bot actions by commenting: - `@home-assistant close` Closes the pull request. - `@home-assistant rename Awesome new title` Renames the pull request. - `@home-assistant reopen` Reopen the pull request. - `@home-assistant unassign synology_dsm` Removes the current integration label and assignees on the pull request, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the pull request. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the pull request.
bdraco commented 1 week ago

seen in https://github.com/home-assistant/core/issues/116755#issuecomment-2094076518

mib1185 commented 1 week ago

tested by manually disconnect established session on Synology

2024-05-05 09:23:37.982 DEBUG (MainThread) [homeassistant.components.synology_dsm.common] Start data update for '21B0R2RQ4TNT0'
2024-05-05 09:23:38.003 DEBUG (MainThread) [homeassistant.components.synology_dsm.coordinator] login is expired, try to login again
2024-05-05 09:23:38.650 DEBUG (MainThread) [homeassistant.components.synology_dsm.common] Start data update for '21B0R2RQ4TNT0'
2024-05-05 09:23:39.975 DEBUG (MainThread) [homeassistant.components.synology_dsm.coordinator] Finished fetching 192.168.100.200 SynologyDSMCentralUpdateCoordinator data in 1.993 seconds (success: True)