We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0027459 commit b58f62dCopy full SHA for b58f62d
2 files changed
appdaemon/utility_loop.py
@@ -60,7 +60,7 @@ async def get_uptime(self) -> timedelta:
60
datetime.timedelta: The uptime of AppDaemon
61
62
"""
63
- uptime = self.booted - await self.AD.sched.get_now()
+ uptime = await self.AD.sched.get_now() - self.booted
64
rounded_uptime = timedelta(seconds=round(uptime.total_seconds()))
65
return rounded_uptime
66
docs/HISTORY.md
@@ -9,6 +9,7 @@ None
9
**Fixes**
10
11
- Fixed an error with `RequestHandlerException` in the HTTP subsystem
12
+- Fixed uptime sensor returning negative days in AUI
13
14
**Breaking Changes**
15
0 commit comments