fixed list and dict bugs
This commit is contained in:
@@ -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"]:
|
||||||
|
|||||||
Reference in New Issue
Block a user