Skip to content

Commit 6be2867

Browse files
committed
refactor: Make V1TraitDataConverter an abstract base class, use a dedicated LedStatusConverter, and fix a typo in Rooms.
1 parent fa058bd commit 6be2867

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roborock/devices/traits/v1/device_features.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99

1010

1111
class DeviceTraitsConverter(common.V1TraitDataConverter):
12-
"""Converter for DeviceFeatures objects."""
12+
"""Converter for APP_GET_INIT_STATUS responses into DeviceFeatures."""
1313

1414
def __init__(self, product: HomeDataProduct) -> None:
1515
"""Initialize DeviceTraitsConverter."""
1616
self._product = product
1717

1818
def convert(self, response: common.V1ResponseData) -> DeviceFeatures:
19-
"""Parse the response from the device into a MapContentTrait instance."""
19+
"""Parse an APP_GET_INIT_STATUS response into a DeviceFeatures instance."""
2020
if not isinstance(response, list):
2121
raise ValueError(f"Unexpected AppInitStatus response format: {type(response)}: {response!r}")
2222
app_status = AppInitStatus.from_dict(response[0])

0 commit comments

Comments
 (0)