From 5e84e991a90913f338c9f444b91fbd4fbc5ddf18 Mon Sep 17 00:00:00 2001 From: Andrew Cockburn Date: Sun, 26 Jan 2025 13:34:43 +0000 Subject: [PATCH] TODO management --- appdaemon/__main__.py | 1 + appdaemon/scheduler.py | 3 --- appdaemon/state.py | 4 ---- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/appdaemon/__main__.py b/appdaemon/__main__.py index 04ef6111b..05ad763ce 100644 --- a/appdaemon/__main__.py +++ b/appdaemon/__main__.py @@ -255,6 +255,7 @@ def main(self): # noqa: C901 "--profiledash", help=argparse.SUPPRESS, action="store_true") parser.add_argument( "--write_toml", help="use TOML for creating new app configuration files", action="store_true") + #TODO Implement --write_toml parser.add_argument("--toml", help="Deprecated", action="store_true") args = parser.parse_args() diff --git a/appdaemon/scheduler.py b/appdaemon/scheduler.py index 5539e050a..4d6ab254e 100644 --- a/appdaemon/scheduler.py +++ b/appdaemon/scheduler.py @@ -511,9 +511,6 @@ def get_next_dst_offset(self, base, limit): # I don't want to rely on heuristics such as "it occurs at 2am" because I don't know if that holds # true for every timezone. With this method, as long as pytz's dst() function is correct, this should work # - - # TODO : Convert this to some sort of binary search for efficiency - # TODO : This really should support sub 1 second periods better self.logger.debug("get_next_dst_offset() base=%s limit=%s", base, limit) current = base.astimezone(self.AD.tz).dst() self.logger.debug("current=%s", current) diff --git a/appdaemon/state.py b/appdaemon/state.py index ecffab871..9ee6cfa28 100644 --- a/appdaemon/state.py +++ b/appdaemon/state.py @@ -63,8 +63,6 @@ async def add_namespace(self, namespace, writeback, persist, name=None): await self.AD.events.process_event("admin", data) - # TODO need to update and reload the admin page to show the new namespace in real-time - return nspath_file async def namespace_exists(self, namespace): @@ -91,8 +89,6 @@ async def remove_namespace(self, namespace): await self.AD.events.process_event("admin", data) - # TODO need to update and reload the admin page to show the removed namespace in real-time - elif namespace in self.state: self.logger.warning("Cannot delete namespace %s, as not an app defined namespace", namespace)