Skip to content

Commit 36fa92f

Browse files
authored
Make attributes behave like states (#20)
1 parent a9adab4 commit 36fa92f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tahoma_api/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(
4747
**_: Any
4848
) -> None:
4949
self.id = deviceurl
50-
self.attributes = [State(**a) for a in attributes] if attributes else None
50+
self.attributes = States(attributes) if attributes else None
5151
self.available = available
5252
self.definition = Definition(**definition)
5353
self.deviceurl = deviceurl

0 commit comments

Comments
 (0)