From dd7690f26552f94b3333caabf02e50c9d88e3f48 Mon Sep 17 00:00:00 2001 From: Jack Minardi Date: Sun, 30 Apr 2017 21:31:55 -0400 Subject: [PATCH] Use % formatting --- homeassistant/components/device_tracker/tplink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/device_tracker/tplink.py b/homeassistant/components/device_tracker/tplink.py index 560babe3d61..032e5db8247 100755 --- a/homeassistant/components/device_tracker/tplink.py +++ b/homeassistant/components/device_tracker/tplink.py @@ -198,7 +198,7 @@ class Tplink3DeviceScanner(TplinkDeviceScanner): return True except (ValueError, KeyError) as _: _LOGGER.error("Couldn't fetch auth tokens!" - " Response was: {}".format(response.text)) + " Response was: %s" % response.text) return False @Throttle(MIN_TIME_BETWEEN_SCANS)