From 1e0212048a082bb2d0b43e5f89e62ad43265c8bc Mon Sep 17 00:00:00 2001 From: Thomas Laubrock Date: Fri, 4 Oct 2024 21:10:05 +0200 Subject: [PATCH] Fix type hint datetime.datetime.utcnow().timestamp() returns a float. The given example already shows this correct. --- appdaemon/adapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appdaemon/adapi.py b/appdaemon/adapi.py index 09a385ba8..8c939132d 100644 --- a/appdaemon/adapi.py +++ b/appdaemon/adapi.py @@ -2162,7 +2162,7 @@ async def get_now(self) -> dt.datetime: return now.astimezone(self.AD.tz) @utils.sync_wrapper - async def get_now_ts(self) -> int: + async def get_now_ts(self) -> float: """Returns the current Local Timestamp. Examples: