automation: default state for unknown automation is disabled

This commit is contained in:
Iain Learmonth 2022-05-14 10:18:47 +01:00
parent ac4f9b4942
commit 74de24fce3

View file

@ -63,7 +63,7 @@ def run_job(job: BaseAutomation, *, force: bool = False, ignore_schedule: bool =
automation = Automation()
automation.short_name = job.short_name
automation.description = job.description
automation.enabled = True
automation.enabled = False
automation.next_is_full = False
automation.added = datetime.datetime.utcnow()
automation.updated = automation.added