From fb9cb5b443904b9b6e1697e1851a234899111bfe Mon Sep 17 00:00:00 2001 From: Julian Knocke Date: Sun, 24 Sep 2023 07:18:30 +0200 Subject: [PATCH] Allow optional channel type (#419) --- src/HABApp/openhab/definitions/rest/things.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HABApp/openhab/definitions/rest/things.py b/src/HABApp/openhab/definitions/rest/things.py index 8d317ea9..7b6c9dae 100644 --- a/src/HABApp/openhab/definitions/rest/things.py +++ b/src/HABApp/openhab/definitions/rest/things.py @@ -12,7 +12,7 @@ class ChannelResp(Struct, kw_only=True): uid: str id: str - channel_type: str = field(name='channelTypeUID') + channel_type: Optional[str] = field(default=None, name='channelTypeUID') item_type: Optional[str] = field(default=None, name='itemType') kind: str label: str = ''