May-02-2023, 06:58 AM
The arguments of hardware_handler are in the wrong order. Self must be the first argument
class HardwareMaintenance: def __init__(self, info_dict = None ): self.info_dict = dict() if info_dict is None else info_dict def hardware_handler(self, ConnectHandler, ip=None): self.info_dict[ip] = []