def get_asuswrt_data(self):
Retrieve data from ASUSWRT and return parsed result.
if self.protocol == "ssh":
result = self.ssh_connection()
elif self.protocol == "telnet":
result = self.telnet_connection()
else:
// autodetect protocol
After Change
def get_asuswrt_data(self):
Retrieve data from ASUSWRT and return parsed result.
result = self.connection.get_result()
if not result:
return {}