Oct-26-2019, 09:42 AM
Your methods should have self as the first parameter
for example
for example
class fan: ... ... def get_fan_speed(value): return self.fan_speed.get(value,"other")change to
class fan: ... ... def get_fan_speed(self, value): return self.fan_speed.get(value,"other")this also needs adding on the other methods that self is missing.