homeassistant/components/sensibo/switch.py
def build_params(command: str, device_data: SensiboDevice) -> dict[str, Any] | None:
    """Build params for turning on switch."""
    if command == "set_timer":
        new_state = bool(device_data.ac_states["on"] is False)
        params = {
            "minutesFromNow": 60,
            "acState": {**device_data.ac_states, "on": new_state},
        }
        return params
    return None
Build params for turning on switch.
Build params for turning on switch.
Build params for turning on switch .
def build_params(command: str, device_data: SensiboDevice) -> dict[str, Any] | None:
    if command == "set_timer":
        new_state = bool(device_data.ac_states["on"] is False)
        params = {
            "minutesFromNow": 60,
            "acState": {**device_data.ac_states, "on": new_state},
        }
        return params
    return None
def build_params ( command : str , device_data : SensiboDevice ) -> dict [ str , Any ] | None : if command == "set_timer" : new_state = bool ( device_data . ac_states [ "on" ] is False ) params = { "minutesFromNow" : 60 , "acState" : { ** device_data . ac_states , "on" : new_state } , } return params return None
Build params for turning on switch.
Build params for turning on switch .
"""Build params for turning on switch."""
command
str
device_data
SensiboDevice