Skip to content

Commit

Permalink
Allow optional channel type (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
JHK authored Sep 24, 2023
1 parent ff7be05 commit fb9cb5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HABApp/openhab/definitions/rest/things.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down

0 comments on commit fb9cb5b

Please sign in to comment.