From cc8091c04e5877b0137e7608412e9b74c4f15584 Mon Sep 17 00:00:00 2001 From: Patrick762 Date: Thu, 1 Jun 2023 15:30:52 +0200 Subject: [PATCH] fixed list and dict bugs --- streamdeckapi/types.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/streamdeckapi/types.py b/streamdeckapi/types.py index 284564f..b361ddc 100644 --- a/streamdeckapi/types.py +++ b/streamdeckapi/types.py @@ -79,11 +79,12 @@ class SDInfo(dict): """Stream Deck Info Type.""" application: SDApplication - devices: list[SDDevice] = [] - buttons: dict[str, SDButton] = {} def __init__(self, obj: dict) -> None: """Init Stream Deck Info object.""" + self.devices: list[SDDevice] = [] + self.buttons: dict[str, SDButton] = {} + dict.__init__(self, obj) self.application = SDApplication(obj["application"]) for device in obj["devices"]: