recipe links

This commit is contained in:
Joren de Graaf
2026-10-23 14:30:58 +02:00
parent 5b986134be
commit 4d76a2bc9c
52 changed files with 2698 additions and 19 deletions
@@ -0,0 +1 @@
@@ -0,0 +1,14 @@
from django.core.management.base import BaseCommand
from home_assistant.sync import run_due_syncs
class Command(BaseCommand):
help = 'Run due Home Assistant grocery syncs.'
def handle(self, *args, **options):
result = run_due_syncs()
self.stdout.write(
f"Home Assistant syncs: {result['succeeded']} succeeded, "
f"{result['failed']} failed, {result['attempted']} attempted."
)