diff --git a/models.py b/models.py index 493a93c..4387829 100644 --- a/models.py +++ b/models.py @@ -9,6 +9,7 @@ class Switch(BaseModel): pin: int = 0 comment: bool = False variable: bool = False + max_variable: int = 100 label: str | None = None diff --git a/static/index.vue b/static/index.vue index b6fafd8..37f714c 100644 --- a/static/index.vue +++ b/static/index.vue @@ -306,6 +306,14 @@ >Variable time (Amount * Duration) +