From 7a24e210ae74dd8c7a9cecdf6b270bb8646b144f Mon Sep 17 00:00:00 2001 From: Jack Minardi Date: Mon, 1 May 2017 09:31:23 -0400 Subject: [PATCH] Try again to pass string to error msg --- 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 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)