Commit 78a3a91
committed
fix Skoda MQTT: refresh token on 'Not authorized' instead of blind reconnect
Like HA's _on_pre_connect_callback pattern: when broker rejects with
"Not authorized", stop the client and trigger an immediate token refresh
rather than reconnecting 10x with the same expired access token.
Also register FCM token with Skoda only once (not on every token refresh).1 parent f4ca267 commit 78a3a91
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2916 | 2916 | | |
2917 | 2917 | | |
2918 | 2918 | | |
2919 | | - | |
| 2919 | + | |
| 2920 | + | |
| 2921 | + | |
| 2922 | + | |
2920 | 2923 | | |
2921 | 2924 | | |
2922 | 2925 | | |
| |||
2977 | 2980 | | |
2978 | 2981 | | |
2979 | 2982 | | |
| 2983 | + | |
| 2984 | + | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
2980 | 2988 | | |
2981 | 2989 | | |
2982 | 2990 | | |
| |||
0 commit comments