roborock.devices.traits

Module for device traits.

This package contains the trait definitions for different device protocols supported by Roborock devices.

Submodules

  • v1: Contains traits for standard Roborock vacuums (e.g., S-series, Q-series). These devices use the V1 protocol and have rich feature sets split into granular traits (e.g., StatusTrait, ConsumableTrait).
  • a01: Contains APIs for A01 protocol devices, such as the Dyad (wet/dry vacuum) and Zeo (washing machine). These devices use a different communication structure.
  • b01: Contains APIs for B01 protocol devices.
 1"""Module for device traits.
 2
 3This package contains the trait definitions for different device protocols supported
 4by Roborock devices.
 5
 6Submodules
 7----------
 8*   `v1`: Contains traits for standard Roborock vacuums (e.g., S-series, Q-series).
 9    These devices use the V1 protocol and have rich feature sets split into
10    granular traits (e.g., `StatusTrait`, `ConsumableTrait`).
11*   `a01`: Contains APIs for A01 protocol devices, such as the Dyad (wet/dry vacuum)
12    and Zeo (washing machine). These devices use a different communication structure.
13*   `b01`: Contains APIs for B01 protocol devices.
14"""
15
16from abc import ABC
17
18__all__ = [
19    "Trait",
20    "traits_mixin",
21    "v1",
22    "a01",
23    "b01",
24]
25
26
27class Trait(ABC):
28    """Base class for all traits."""
class Trait(abc.ABC):
28class Trait(ABC):
29    """Base class for all traits."""

Base class for all traits.