fixed list and dict bugs

This commit is contained in:
Patrick762
2023-06-01 15:30:52 +02:00
parent 91af39bb6f
commit cc8091c04e

View File

@@ -79,11 +79,12 @@ class SDInfo(dict):
"""Stream Deck Info Type.""" """Stream Deck Info Type."""
application: SDApplication application: SDApplication
devices: list[SDDevice] = []
buttons: dict[str, SDButton] = {}
def __init__(self, obj: dict) -> None: def __init__(self, obj: dict) -> None:
"""Init Stream Deck Info object.""" """Init Stream Deck Info object."""
self.devices: list[SDDevice] = []
self.buttons: dict[str, SDButton] = {}
dict.__init__(self, obj) dict.__init__(self, obj)
self.application = SDApplication(obj["application"]) self.application = SDApplication(obj["application"])
for device in obj["devices"]: for device in obj["devices"]: