wittypluck
wittypluck
Thanks for the quick reply ! In this case, I think the best way to detect a reboot is to check the uptime duration (provided by the API), and only...
Hello @gjohansson-ST , as discussed I have changed the logic to update uptime only on startup or when the remote server restarts. Looks good to me now, no small variations,...
Great, thank you @gjohansson-ST !
Nice ! The Disk I/O sensors got merged this morning, I hope the network sensors will also get approved which will make a nice improvement to Glances for 2024.5 !
First draft PR. Still need to - add unit tests - maybe deduplicate code with device_tracker.py like async_client_is_connected_fn
Thanks for the review ! I can't test the changes as much as I would like right now, but I'll implement your suggestions in the next few days.
Hi @Kane610 , all tests ok on my side :)
Thanks @Kane610 ! I have added the two missing checks.
Great, thank you!
This PR could help, it adds checks to avoid crashes in the HA integration when a key goes missing from Glances server side: #114628