Skip to content

Commit 7579ad5

Browse files
fix: minor fixes
1 parent df1262e commit 7579ad5

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

roborock/code_mappings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def _missing_(cls, code: int):
1414

1515
@classmethod
1616
def as_dict(cls):
17-
return {i.name: i.value for i in cls}
17+
return {int(i.name): i.value for i in cls}
1818

1919
@classmethod
2020
def values(cls):

roborock/containers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ class LoginData(RoborockBase):
160160
class Status(RoborockBase):
161161
msg_ver: Optional[int] = None
162162
msg_seq: Optional[int] = None
163-
status: Optional[str] = None
164163
state: Optional[RoborockStateCode] = None
165164
battery: Optional[int] = None
166165
clean_time: Optional[int] = None

0 commit comments

Comments
 (0)