From 721c1d0f547293fe16f5487de03575ab06244356 Mon Sep 17 00:00:00 2001 From: Tom Duijf Date: Thu, 8 Oct 2015 10:24:55 +0000 Subject: [PATCH] styling fix for flake --- homeassistant/components/device_tracker/snmp.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/device_tracker/snmp.py b/homeassistant/components/device_tracker/snmp.py index 8fe80cf85d6..012c7250c33 100644 --- a/homeassistant/components/device_tracker/snmp.py +++ b/homeassistant/components/device_tracker/snmp.py @@ -90,7 +90,7 @@ class SnmpScanner(object): self._update_info() return [client['mac'] for client in self.last_results] - # Ignoring no-self-use warning + # Supressing no-self-use warning # pylint: disable=R0201 def get_device_name(self, device): """ Returns the name of the given device or None if we don't know. """ @@ -128,12 +128,14 @@ class SnmpScanner(object): ) if errindication: - #pylint: disable=W1202 + # Supressing logging-format-interpolation + # pylint: disable=W1202 _LOGGER.error("SNMPLIB error: {}".format(errindication)) return if errstatus: err = "SNMP error: {} at {}" - #pylint: disable=W1202 + # Supressing logging-format-interpolation + # pylint: disable=W1202 _LOGGER.error(err.format(errstatus.prettyPrint(), errindex and restable[-1][int(errindex)-1]