Skip to content

Commit c03410a

Browse files
committed
Roborock: Add some more enum sensor metadata
1 parent 356c6c0 commit c03410a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

miio/integrations/roborock/vacuum/vacuumcontainers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ def error_code(self) -> int:
228228
"Error string",
229229
id=VacuumId.ErrorMessage,
230230
icon="mdi:alert",
231+
device_class="enum",
232+
options=list(ERROR_CODES.values()),
231233
entity_category="diagnostic",
232234
enabled_default=False,
233235
)
@@ -255,6 +257,8 @@ def dock_error_code(self) -> Optional[int]:
255257
@sensor(
256258
"Dock error string",
257259
icon="mdi:alert",
260+
device_class="enum",
261+
options=list(dock_error_codes.values()),
258262
entity_category="diagnostic",
259263
enabled_default=False,
260264
)

0 commit comments

Comments
 (0)