Closed trixing closed 2 years ago
Note, it's debatable if the better course of action would be to call sys.exit to prevent stale readings to stick around on dbus, potentially leading to wrong action by the ESS system?
Okay, I've found a corner case of the Symo changing IP and this code kept reporting the old energy, let's rather exit than do that.
If the return value from _update is not True, gobject will stop calling the thread. Make sure that we always return True as otherwise the process will just start hanging.