feat: add scoped user accounts, password login and garden paving materials
This commit is contained in:
1 parent
c56f1a5ba9
commit
1d67e8ceba
43 files changed
+2024
-625
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user