Skip to content

Commit

Permalink
TODO management
Browse files Browse the repository at this point in the history
  • Loading branch information
acockburn committed Jan 26, 2025
1 parent 4401b5e commit 5e84e99
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions appdaemon/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 0 additions & 3 deletions appdaemon/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 0 additions & 4 deletions appdaemon/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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)

Expand Down

0 comments on commit 5e84e99

Please sign in to comment.