(self)
return {
            'instance': self.instance,
            'random_access': False,
        }
Return parameters for a devices request.
Return parameters for a devices request.
Return parameters for a devices request .
def parameters(self) -> dict[str, Any]:
        """Return parameters for a devices request."""
        if self.support_random_access:
            range_min, range_max, range_precision = self.range
            rv = {
                'instance': self.instance,
                'random_access': True,
                'range': {
                    'min': range_min,
                    'max': range_max,
                    'precision': range_precision
                }
            }

            if self.instance in const.RANGE_INSTANCE_TO_UNITS:
                rv['unit'] = const.RANGE_INSTANCE_TO_UNITS[self.instance]

            return rv

        return {
            'instance': self.instance,
            'random_access': False,
        }
def parameters ( self ) -> dict [ str , Any ] : if self . support_random_access : range_min , range_max , range_precision = self . range rv = { 'instance' : self . instance , 'random_access' : True , 'range' : { 'min' : range_min , 'max' : range_max , 'precision' : range_precision } } if self . instance in const . RANGE_INSTANCE_TO_UNITS : rv [ 'unit' ] = const . RANGE_INSTANCE_TO_UNITS [ self . instance ] return rv return { 'instance' : self . instance , 'random_access' : False , }