feat: add scoped user accounts, password login and garden paving materials

This commit is contained in:
jhartworks committed 2026-11-16 16:30:47 +01:00
1 parent c56f1a5ba9
commit 1d67e8ceba
43 files changed
+2024 -625

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
import type { HomeAssistant } from "./types.ts";
/** Presentation guard only. The Symcon API independently checks every requested native target. */
export function canControl(hass: HomeAssistant | undefined, id: string): boolean {
if (!hass || hass.symconObjects === undefined) return true;
return !!hass.states[id] && hass.states[id].attributes.symcon_can_control !== false && hass.states[id].attributes.symcon_has_action !== false;
}