This commit is contained in:
ari committed 2022-09-02 10:34:16 -04:00
1 parent 83b1c85043
commit ab4997494d
1 file changed
+1 -1
+1 -1
View File
@@ -41,7 +41,7 @@ class BaseAutomation(BaseModel):
condition: list[dict] = []
action: list[dict] = []
def to_primitive(self, **kwrgs):
def to_primitive(self):
return self.dict(exclude_unset=True, exclude_none=True)