Dont add two strings inside logger call

This commit is contained in:
Jack Minardi 2017-04-30 22:26:16 -04:00
parent dd7690f265
commit bc0559813c

View File

@ -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)