From 4d2797df5ca9c754c3515c9cee89f92d1a826794 Mon Sep 17 00:00:00 2001 From: Alex X Date: Wed, 4 Sep 2024 23:41:48 +0300 Subject: [PATCH] Fix zigpy fix after Hass 2024.9 update --- custom_components/xiaomi_gateway3/core/converters/silabs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom_components/xiaomi_gateway3/core/converters/silabs.py b/custom_components/xiaomi_gateway3/core/converters/silabs.py index d30f8064..f8c67939 100644 --- a/custom_components/xiaomi_gateway3/core/converters/silabs.py +++ b/custom_components/xiaomi_gateway3/core/converters/silabs.py @@ -22,7 +22,9 @@ # for https://github.com/zigpy/zigpy/blob/0.66.0/zigpy/zcl/foundation.py from zigpy.zcl.foundation import DataType - DATA_TYPES = {int(d.type_id): d for d in DataType} + DATA_TYPES = { + int(d.type_id): (d.description, d.python_type, d.type_class) for d in DataType + } except ImportError: # for https://github.com/zigpy/zigpy/blob/0.65.4/zigpy/zcl/foundation.py from zigpy.zcl.foundation import DATA_TYPES