Skip to content

Commit b7cec86

Browse files
committed
Update json_utils.dumps() extra types call param
1 parent b617fdd commit b7cec86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

qtoggleserver/paradox/paradoxalarm.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ def handle_paradox_property_change(self, change: Any) -> None:
223223
id_ = info['id']
224224
self.debug(
225225
'property change: %s[%s].%s: %s -> %s', change.type, id_, change.property,
226-
json_utils.dumps(change.old_value, allow_extended_types=True),
227-
json_utils.dumps(change.new_value, allow_extended_types=True)
226+
json_utils.dumps(change.old_value, extra_types=json_utils.EXTRA_TYPES_EXTENDED),
227+
json_utils.dumps(change.new_value, extra_types=json_utils.EXTRA_TYPES_EXTENDED)
228228
)
229229
obj = self._properties.setdefault(change.type, {}).setdefault(id_, {})
230230
obj[change.property] = change.new_value
@@ -233,8 +233,8 @@ def handle_paradox_property_change(self, change: Any) -> None:
233233
id_ = None
234234
self.debug(
235235
'property change: %s.%s: %s -> %s', change.type, change.property,
236-
json_utils.dumps(change.old_value, allow_extended_types=True),
237-
json_utils.dumps(change.new_value, allow_extended_types=True)
236+
json_utils.dumps(change.old_value, extra_types=json_utils.EXTRA_TYPES_EXTENDED),
237+
json_utils.dumps(change.new_value, extra_types=json_utils.EXTRA_TYPES_EXTENDED)
238238
)
239239
self._properties.setdefault(change.type, {})[change.property] = change.new_value
240240

0 commit comments

Comments
 (0)