summaryrefslogtreecommitdiff
path: root/include/py/homekit/util.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2024-02-18 02:19:27 +0300
committerEvgeny Zinoviev <me@ch1p.io>2024-02-18 02:19:27 +0300
commitf14bdc6752fc4a0ab36567d0f1e51e472a2200b6 (patch)
tree22c6b3af78fc079ab6424751289971aa65051f97 /include/py/homekit/util.py
parent42155370475b1f6619498ec2c43c1c7f328ce1a1 (diff)
web_kbn: basic support of cams hls streaming
Diffstat (limited to 'include/py/homekit/util.py')
-rw-r--r--include/py/homekit/util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/py/homekit/util.py b/include/py/homekit/util.py
index c686f29..4410251 100644
--- a/include/py/homekit/util.py
+++ b/include/py/homekit/util.py
@@ -121,6 +121,8 @@ def json_serial(obj):
return obj.value
if isinstance(obj, KeysView):
return list(obj)
+ if isinstance(obj, Addr):
+ return str(obj)
raise TypeError("Type %s not serializable" % type(obj))