(self, name: Any, data: Dict[Any, Any])
Handle a client command

        :param name: Name of the command
        :param data: Data supplied in command
        :return: None
Handle a client command
Handle a client command
async def handle_command(self, name: Any, data: Dict[Any, Any]):
        """
        Handle a client command

        :param name: Name of the command
        :param data: Data supplied in command
        :return: None
        """
        # Here we need to get the current state in the state machine's
        # state enum because otherwise mypy will confuse which type
        # the state is.
        state = getattr(self._sm.state, self._sm.current_state)
        next_state = self._sm.get_next_state(state, name)

        handler = self._command_map.get(name)
        if handler is not None:
            await handler(**data)
        self._sm.set_state(next_state)
        MODULE_LOG.debug(
            f"PipetteOffsetCalUserFlow handled command {name}, transitioned"
            f"from {self._sm.current_state} to {next_state}"
        )
async def handle_command ( self , name : Any , data : Dict [ Any , Any ] ) : # Here we need to get the current state in the state machine's # state enum because otherwise mypy will confuse which type # the state is. state = getattr ( self . _sm . state , self . _sm . current_state ) next_state = self . _sm . get_next_state ( state , name ) handler = self . _command_map . get ( name ) if handler is not None : await handler ( * * data ) self . _sm . set_state ( next_state ) MODULE_LOG . debug ( f"PipetteOffsetCalUserFlow handled command {name}, transitioned" f"from {self._sm.current_state} to {next_state}" )