fix: Handle empty or null Home Assistant name in device settings (#28364)

Co-authored-by: Nerivec <62446222+Nerivec@users.noreply.github.com>
This commit is contained in:
Jori Huisman
2025-09-21 14:54:18 +02:00
committed by GitHub
co-authored by Nerivec
parent 382d37e839
commit a5e1e8c0c3
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -925,7 +925,7 @@
"title": "Home Assistant",
"properties": {
"name": {
"type": "string",
"type": ["string", "null"],
"title": "Home Assistant name",
"description": "Name of the device in Home Assistant"
}
-2
View File
@@ -1,9 +1,7 @@
import path from "node:path";
import type {ValidateFunction} from "ajv";
import Ajv from "ajv";
import objectAssignDeep from "object-assign-deep";
import data from "./data";
import schemaJson from "./settings.schema.json";
import utils from "./utils";