pylint 2.3.0 (#21485)

* pylint 2.3.0

* remove const

*  disable=syntax-error
This commit is contained in:
Daniel Høyer Iversen authored and David F. Mulcahey committed 2019-02-27 16:10:40 -05:00
1 parent 2482816a11
commit 519315f9c8
26 files changed
+47 -57

No files matched your search

@@ -119,10 +119,9 @@ class CurrencylayerData:
self._resource, params=self._parameters, timeout=10)
if 'error' in result.json():
raise ValueError(result.json()['error']['info'])
else:
self.data = result.json()['quotes']
_LOGGER.debug("Currencylayer data updated: %s",
result.json()['timestamp'])
self.data = result.json()['quotes']
_LOGGER.debug("Currencylayer data updated: %s",
result.json()['timestamp'])
except ValueError as err:
_LOGGER.error("Check Currencylayer API %s", err.args)
self.data = None
@@ -44,7 +44,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
def setup_platform(hass, config, add_devices, discovery_info=None):
"""Set up the Sterling Bank sensor platform."""
from starlingbank import StarlingAccount
from starlingbank import StarlingAccount # pylint: disable=syntax-error
sensors = []
for account in config[CONF_ACCOUNTS]: