diff --git a/src/fabledassistant/services/tools.py b/src/fabledassistant/services/tools.py index 22f7b02..f9b28da 100644 --- a/src/fabledassistant/services/tools.py +++ b/src/fabledassistant/services/tools.py @@ -1238,7 +1238,7 @@ async def execute_tool(user_id: int, tool_name: str, arguments: dict) -> dict: all_day = True start_str = f"{start_str}T00:00:00" try: - start_dt = datetime.fromisoformat(start_str) # noqa: F823 (false positive — datetime is imported at module level) + start_dt = datetime.fromisoformat(start_str) except (ValueError, TypeError): return {"success": False, "error": f"Invalid start datetime: {start_str!r}"} end_dt = None @@ -1705,7 +1705,7 @@ async def execute_tool(user_id: int, tool_name: str, arguments: dict) -> dict: from fabledassistant.services.weather import ( get_cached_weather, geocode, _fetch_open_meteo, parse_forecast ) - from datetime import datetime, timezone as _tz + from datetime import timezone as _tz location = (arguments.get("location") or "").strip() _known = {"home", "work", "all", ""} if location.lower() not in _known: