Skip to content

Commit 05443d5

Browse files
committed
chore: add more info about the dynamic attributes
1 parent 5879989 commit 05443d5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

roborock/devices/traits/v1/status.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ class StatusTrait(StatusV2, common.V1TraitMixin):
2121
the latest data from the device. You must pass in the device feature trait
2222
to this trait so that the dynamic attributes can be pre-determined.
2323
24+
The current dynamic attributes are:
25+
- Fan Speed
26+
- Water Mode
27+
- Mop Route
28+
29+
You should call the _options() version of the attribute to know which are supported for your device
30+
(i.e. fan_speed_options())
31+
Then you can call the _mapping to convert an int value to the actual Enum. (i.e. fan_speed_mapping())
32+
You can call the _name property to get the str value of the enum. (i.e. fan_speed_name)
33+
2434
"""
2535

2636
command = RoborockCommand.GET_STATUS

0 commit comments

Comments
 (0)