From a90959cb103dc3de60a3faad636bd18b047ddaf5 Mon Sep 17 00:00:00 2001 From: hidder11 Date: Sat, 31 Jan 2026 17:32:15 +0100 Subject: [PATCH] Ensure `/data` directory creation at startup. --- Intentor/Program.cs | 3 +++ Intentor/config.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Intentor/Program.cs b/Intentor/Program.cs index 504e173..c05fc1f 100644 --- a/Intentor/Program.cs +++ b/Intentor/Program.cs @@ -36,6 +36,9 @@ public class Program var app = builder.Build(); + // Ensure /data exists (Home Assistant add-on persistent storage mount) + Directory.CreateDirectory("/data"); + // Create database file + schema (no migrations tooling required) using (var scope = app.Services.CreateScope()) { diff --git a/Intentor/config.yaml b/Intentor/config.yaml index 3ee780d..3a2d131 100644 --- a/Intentor/config.yaml +++ b/Intentor/config.yaml @@ -1,6 +1,6 @@ name: "Intentor" description: "Intent based automation platform" -version: 0.0.8 +version: 0.0.9 slug: "intentor" init: false arch: