Python – Problem returning True/False to class properties from class method

I have a class as below which within the __init__ method I am trying to assign a True/False value to a class property using a class method. class Sensor: def __init__(self, json_data): self.sensor_eui = json_data[‘end_device_ids’][‘dev_eui’] self.reading1 = json_data[‘uplink_message’][‘decoded_payload’][‘temperature’] self.reading2 = json_data[‘uplink_message’][‘decoded_payload’][‘humidity’] self.tolerance_exceeded = self.tolerance_check def tolerance_check(self): sql = f"SELECT DefaultLowerLimit, DefaultUpperLimit FROM [dbo].[IoT_Sensors] WHERE DeviceID… Read More Python – Problem returning True/False to class properties from class method