def check(self): try: sensors.init() except sensors.SensorsError as error: self.error(error) return False self.create_definitions() return True
def check(self): try: sensors.init() except sensors.SensorsError as error: self.error(error) return False self.priority = self.charts.priority return bool(self.get_data() and self.charts)