miio.integrations.mmgg.petwaterdispenser.status module
- class miio.integrations.mmgg.petwaterdispenser.status.OperatingMode(value)[source]
Bases:
Enum
An enumeration.
- Normal = 1
- Smart = 2
- class miio.integrations.mmgg.petwaterdispenser.status.PetWaterDispenserStatus(data: Dict[str, Any])[source]
Bases:
DeviceStatus
Container for status reports from Pet Water Dispenser.
- descriptors() DescriptorCollection[PropertyDescriptor]
Return the dict of sensors exposed by the status container.
Use @sensor and @setting decorators to define properties.
- embed(name: str, other: DeviceStatus)
Embed another status container to current one.
This makes it easy to provide a single status response for cases where responses from multiple I/O calls is wanted to provide a simple interface for downstreams.
Internally, this will prepend the name of the other class to the attribute names, and override the __getattribute__ to lookup attributes in the embedded containers.
- property mode: OperatingMode
OperatingMode.