Narrow scope of various pylint inline disables (#15364)

* Narrow scope of various pylint inline disables

* Whitespace tweaks
This commit is contained in:
Ville Skyttä authored and Paulus Schoutsen committed 2018-10-10 12:17:11 +02:00
1 parent 78c38749ab
commit 707b7c202d
30 files changed
+52 -75

No files matched your search

@@ -43,8 +43,7 @@ class FritzBoxScanner(DeviceScanner):
self.password = config[CONF_PASSWORD]
self.success_init = True
# pylint: disable=import-error
import fritzconnection as fc
import fritzconnection as fc # pylint: disable=import-error
# Establish a connection to the FRITZ!Box.
try:
@@ -86,10 +86,9 @@ class UnifiDeviceScanner(DeviceScanner):
def _disconnect(self):
"""Disconnect the current SSH connection."""
# pylint: disable=broad-except
try:
self.ssh.logout()
except Exception:
except Exception: # pylint: disable=broad-except
pass
finally:
self.ssh = None