Add ConnectorManager component which allows for Connectors to listen to triggers and do actions on them. Also add HomeAssistantConfig which stores the configuration for the HomeAssistantConnector
This commit is contained in:
@ -3,7 +3,7 @@ from django.utils.html import format_html
|
||||
from django.utils.translation import gettext as _
|
||||
from django_tables2.utils import A
|
||||
|
||||
from .models import CookLog, InviteLink, RecipeImport, Storage, Sync, SyncLog, ViewLog
|
||||
from .models import CookLog, InviteLink, RecipeImport, Storage, Sync, SyncLog, ViewLog, HomeAssistantConfig
|
||||
|
||||
|
||||
class StorageTable(tables.Table):
|
||||
@ -15,6 +15,15 @@ class StorageTable(tables.Table):
|
||||
fields = ('id', 'name', 'method')
|
||||
|
||||
|
||||
class HomeAssistantConfigTable(tables.Table):
|
||||
id = tables.LinkColumn('edit_home_assistant_config', args=[A('id')])
|
||||
|
||||
class Meta:
|
||||
model = HomeAssistantConfig
|
||||
template_name = 'generic/table_template.html'
|
||||
fields = ('id', 'name', 'url')
|
||||
|
||||
|
||||
class ImportLogTable(tables.Table):
|
||||
sync_id = tables.LinkColumn('edit_sync', args=[A('sync_id')])
|
||||
|
||||
|
Reference in New Issue
Block a user