Narrow scope of various pylint inline disables (#15364)
* Narrow scope of various pylint inline disables * Whitespace tweaks
This commit is contained in:
1 parent
78c38749ab
commit
707b7c202d
30 files changed
+52
-75
No files matched your search
@@ -49,10 +49,9 @@ def setup(hass, config):
|
||||
|
||||
# It doesn't really matter why we're not able to get the status, just that
|
||||
# we can't.
|
||||
# pylint: disable=broad-except
|
||||
try:
|
||||
DATA.update(no_throttle=True)
|
||||
except Exception:
|
||||
except Exception: # pylint: disable=broad-except
|
||||
_LOGGER.exception("Failure while testing APCUPSd status retrieval.")
|
||||
return False
|
||||
return True
|
||||
|
||||
Reference in new issue
Block a user