Skip to content

Commit

Permalink
Roborock: Add some more enum sensor metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
SLaks committed Mar 20, 2024
1 parent 356c6c0 commit c03410a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions miio/integrations/roborock/vacuum/vacuumcontainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ def error_code(self) -> int:
"Error string",
id=VacuumId.ErrorMessage,
icon="mdi:alert",
device_class="enum",
options=list(ERROR_CODES.values()),
entity_category="diagnostic",
enabled_default=False,
)
Expand Down Expand Up @@ -255,6 +257,8 @@ def dock_error_code(self) -> Optional[int]:
@sensor(
"Dock error string",
icon="mdi:alert",
device_class="enum",
options=list(dock_error_codes.values()),
entity_category="diagnostic",
enabled_default=False,
)
Expand Down

0 comments on commit c03410a

Please sign in to comment.