Service Netatmo

I asked Claude, and according to him, there are two issues:

  1. A likely broken OAuth refresh since the undici migration (Bearer on an expired token, bug introduced in this PR: fix: Netatmo service to replace axios with undici for HTTP requests by Terdious · Pull Request #2256 · GladysAssistant/Gladys · GitHub).
  2. A « wipe everything » policy as soon as a refresh fails, turning any temporary error into a lasting disconnection.

@Terdious I’m at your disposal if you need help fixing it :slight_smile:

Thanks to everyone for your feedback!

It was 12:30 AM on my end.

Hello everyone!

Same for me!

Sorry for the delay, I haven’t touched the PC for 2 weeks, my parents are at home. And I sprained my thumb and index finger at the beginning of the week. :face_with_peeking_eye::face_with_peeking_eye:

I’ll try to look at it this weekend.

Thanks @pierre-gilles for the initial analysis… and sorry for introducing the bug

No worries @Terdious, no rush…

Get well soon!

Oh no! Do you want me to make a PR on Monday? I won’t be able to test, but I can run Claude on the topic :joy: