roborock.devices.traits.v1.smart_wash_params

Trait for smart wash parameters.

 1"""Trait for smart wash parameters."""
 2
 3from roborock.data import SmartWashParams
 4from roborock.device_features import is_wash_n_fill_dock
 5from roborock.devices.traits.v1 import common
 6from roborock.roborock_typing import RoborockCommand
 7
 8
 9class SmartWashParamsTrait(SmartWashParams, common.V1TraitMixin):
10    """Trait for smart wash parameters."""
11
12    command = RoborockCommand.GET_SMART_WASH_PARAMS
13    requires_dock_type = is_wash_n_fill_dock
10class SmartWashParamsTrait(SmartWashParams, common.V1TraitMixin):
11    """Trait for smart wash parameters."""
12
13    command = RoborockCommand.GET_SMART_WASH_PARAMS
14    requires_dock_type = is_wash_n_fill_dock

Trait for smart wash parameters.

command = <RoborockCommand.GET_SMART_WASH_PARAMS: 'get_smart_wash_params'>
def requires_dock_type( dock_type: roborock.data.v1.v1_code_mappings.RoborockDockTypeCode) -> bool:
649def is_wash_n_fill_dock(dock_type: RoborockDockTypeCode) -> bool:
650    """Check if the dock type is a wash and fill dock."""
651    return dock_type in WASH_N_FILL_DOCK_TYPES

Check if the dock type is a wash and fill dock.