From 84858f5c19a3a9ff25b9176652607ae5b56e8bfb Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 13 Jul 2018 15:05:55 +0200 Subject: [PATCH] Fix comment formatting (#15447) --- homeassistant/components/device_tracker/asuswrt.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/device_tracker/asuswrt.py b/homeassistant/components/device_tracker/asuswrt.py index bea02143d72..710a07f77d3 100644 --- a/homeassistant/components/device_tracker/asuswrt.py +++ b/homeassistant/components/device_tracker/asuswrt.py @@ -311,12 +311,11 @@ class SshConnection(_Connection): super().connect() - def disconnect(self): \ - # pylint: disable=broad-except + def disconnect(self): """Disconnect the current SSH connection.""" try: self._ssh.logout() - except Exception: + except Exception: # pylint: disable=broad-except pass finally: self._ssh = None @@ -379,12 +378,11 @@ class TelnetConnection(_Connection): super().connect() - def disconnect(self): \ - # pylint: disable=broad-except + def disconnect(self): """Disconnect the current Telnet connection.""" try: self._telnet.write('exit\n'.encode('ascii')) - except Exception: + except Exception: # pylint: disable=broad-except pass super().disconnect()