We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 356c6c0 commit c03410aCopy full SHA for c03410a
miio/integrations/roborock/vacuum/vacuumcontainers.py
@@ -228,6 +228,8 @@ def error_code(self) -> int:
228
"Error string",
229
id=VacuumId.ErrorMessage,
230
icon="mdi:alert",
231
+ device_class="enum",
232
+ options=list(ERROR_CODES.values()),
233
entity_category="diagnostic",
234
enabled_default=False,
235
)
@@ -255,6 +257,8 @@ def dock_error_code(self) -> Optional[int]:
255
257
@sensor(
256
258
"Dock error string",
259
260
261
+ options=list(dock_error_codes.values()),
262
263
264
0 commit comments