miio.integrations.roborock.vacuum.updatehelper module

class miio.integrations.roborock.vacuum.updatehelper.UpdateHelper(main_update_method: Callable)[source]

Bases: object

Helper class to construct status containers using multiple status methods.

This is used to perform status fetching on integrations that require calling

multiple methods, some of which may not be supported by the target device.

This class automatically removes the methods that failed from future updates, to avoid unnecessary device I/O.

add_update_method(name: str, update_method: Callable)[source]

Add status method to be called.

status() DeviceStatus[source]