From bc0559813c7ccb091444ebdcdc0cfa082e1aaf9f Mon Sep 17 00:00:00 2001 From: Jack Minardi Date: Sun, 30 Apr 2017 22:26:16 -0400 Subject: [PATCH] Dont add two strings inside logger call --- homeassistant/components/device_tracker/tplink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/device_tracker/tplink.py b/homeassistant/components/device_tracker/tplink.py index 032e5db8247..c456d5d7adc 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 _: - _LOGGER.error("Couldn't fetch auth tokens!" - " Response was: %s" % response.text) + m = "Couldn't fetch auth tokens! Response was: %s" % response.text + _LOGGER.error(m) return False @Throttle(MIN_TIME_BETWEEN_SCANS)