(self, data)
Helper function that calls a specific action method on the device.

        :param data: the `_actions` key mapped to the action method we want to call
        :type data: string
Helper function that calls a specific action method on the device.
Helper function that calls a specific action method on the device .
def action(self, data):
        """Helper function that calls a specific action method on the device.

        :param data: the `_actions` key mapped to the action method we want to call
        :type data: string
        """
        self._actions[data.get('action', '')](data)
def action ( self , data ) : self . _actions [ data . get ( 'action' , '' ) ] ( data )