fix: normalize db path to absolute and assert no database file is created

This commit is contained in:
Joshua King
2026-09-13 18:15:06 -04:00
parent ec0fc29160
commit 7f085b140d
2 changed files with 44 additions and 2 deletions
+1 -1
View File
@@ -15,6 +15,6 @@ def _ensure_dir(path: Path) -> None:
async def async_get_db_path(hass: HomeAssistant) -> Path:
"""Return the absolute path to the NestQuest SQLite database file."""
db_path = Path(hass.config.path(SQLITE_DB_FILENAME))
db_path = Path(hass.config.path(SQLITE_DB_FILENAME)).absolute()
await hass.async_add_executor_job(_ensure_dir, db_path.parent)
return db_path