diff --git a/homeassistant/components/device_tracker/tplink.py b/homeassistant/components/device_tracker/tplink.py index c456d5d7adc..f38e7d07b45 100755 --- a/homeassistant/components/device_tracker/tplink.py +++ b/homeassistant/components/device_tracker/tplink.py @@ -197,8 +197,8 @@ class Tplink3DeviceScanner(TplinkDeviceScanner): _LOGGER.info(self.sysauth) return True except (ValueError, KeyError) as _: - m = "Couldn't fetch auth tokens! Response was: %s" % response.text - _LOGGER.error(m) + _LOGGER.error("Couldn't fetch auth tokens! Response was: %s", + response.text) return False @Throttle(MIN_TIME_BETWEEN_SCANS)