parameters: (self, items)
return_statement: return True
docstring: Perform all validity checks on the input
             temperature setting.
docstring_summary: Perform all validity checks on the input
             temperature setting.
docstring_tokens: Perform all validity checks on the input temperature setting .
function: def verify(self, items):
          """Perform all validity checks on the input
             temperature setting."""
          min_temp_failures = 0
          for i in items:
              label = i['label']
              fatal = float(i['fatal'])
              units = i['units']
  
              if not self.verify_units(units):
                  LOG.error(f'Units for {label} not {DEGREES_C}.')
                  return False
              if not self.verify_min_temp(fatal):
                  LOG.info(f'QPA threshold value for sensor '
                           f'{label}: {fatal:.2f} {units}')
                  LOG.info(f'is lower than the platform\'s recommended '
                           f'minimum of {self.args.min_temp:.2f} {DEGREES_C}.')
                  min_temp_failures += 1
                  i['fatal'] = str(self.args.min_temp)
  
          if min_temp_failures == len(items):
              LOG.warning(f'WARNING: All threshold values are below the '
                          f'recommended minimum ({self.args.min_temp} '
                          f'{DEGREES_C}).')
              LOG.warning('Check QPA settings.')
              return False
  
          return True
function_tokens: def verify ( self , items ) : min_temp_failures = 0 for i in items : label = i [ 'label' ] fatal = float ( i [ 'fatal' ] ) units = i [ 'units' ] if not self . verify_units ( units ) : LOG . error ( f'Units for {label} not {DEGREES_C}.' ) return False if not self . verify_min_temp ( fatal ) : LOG . info ( f'QPA threshold value for sensor ' f'{label}: {fatal:.2f} {units}' ) LOG . info ( f'is lower than the platform\'s recommended ' f'minimum of {self.args.min_temp:.2f} {DEGREES_C}.' ) min_temp_failures += 1 i [ 'fatal' ] = str ( self . args . min_temp ) if min_temp_failures == len ( items ) : LOG . warning ( f'WARNING: All threshold values are below the ' f'recommended minimum ({self.args.min_temp} ' f'{DEGREES_C}).' ) LOG . warning ( 'Check QPA settings.' ) return False return True