try to pass travis build

This commit is contained in:
Fabian Affolter 2015-04-27 23:51:59 +02:00
parent 8b64e905b8
commit b76b002966

View File

@ -58,7 +58,7 @@ def get_service(hass, config):
response = nma.get(_RESOURCE + 'verify', response = nma.get(_RESOURCE + 'verify',
params={"apikey": config[DOMAIN][CONF_API_KEY]}) params={"apikey": config[DOMAIN][CONF_API_KEY]})
tree = ET.fromstring(response.content) tree = ET.fromstring(response.content)
# pylint: disable=logging-not-lazy # pylint: disable=bad-option-value
if tree[0].tag == 'error': if tree[0].tag == 'error':
_LOGGER.error( _LOGGER.error(
"Wrong API key supplied. " "Wrong API key supplied. "
@ -93,7 +93,7 @@ class NmaNotificationService(BaseNotificationService):
response = self.nma.get(_RESOURCE + 'notify', response = self.nma.get(_RESOURCE + 'notify',
params=self._data) params=self._data)
tree = ET.fromstring(response.content) tree = ET.fromstring(response.content)
# pylint: disable=logging-not-lazy # pylint: disable=bad-option-value
if tree[0].tag == 'error': if tree[0].tag == 'error':
_LOGGER.exception( _LOGGER.exception(
"Unable to perform request. " "Unable to perform request. "