From c743d3f0b0278adfb0e720745700f5e3af7e1b77 Mon Sep 17 00:00:00 2001 From: "nieznany.sprawiciel" Date: Fri, 29 Mar 2024 18:45:49 +0100 Subject: [PATCH] Allow dict properties in Demand --- yapapi/props/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yapapi/props/builder.py b/yapapi/props/builder.py index 0cc543c55..25331f988 100644 --- a/yapapi/props/builder.py +++ b/yapapi/props/builder.py @@ -72,7 +72,7 @@ def add(self, m: Model): value = int(value.timestamp() * 1000) if isinstance(value, enum.Enum): value = value.value - assert isinstance(value, (str, int, list)) + assert isinstance(value, (str, int, list, dict)) self._properties[prop_id] = value def add_properties(self, props: dict):