refactor: migrate triggers to new service

This commit is contained in:
Carlos Valente
2025-01-11 16:02:23 +01:00
committed by Carlos Valente
parent 6c4d80158c
commit 1f71d4578c
3 changed files with 26 additions and 13 deletions
@@ -17,6 +17,13 @@ export function getAutomationSettings(): AutomationSettings {
return structuredClone(getDataProvider().getAutomation());
}
/**
* Gets the enabled status of the automations
*/
export function getAutomationsEnabled(): boolean {
return getAutomationSettings().enabledAutomations;
}
/**
* Gets a copy of the stored automations
*/