Fix some issues for PyLint 1.7.2 (#8356)

* Fix some issues for PyLint 1.7.2

* More fixes

* Revert position change for cover
This commit is contained in:
Paulus Schoutsen 2017-07-05 20:02:16 -07:00 committed by GitHub
parent 83a5f932d1
commit 5779d64e98
66 changed files with 176 additions and 272 deletions

View file

@ -68,7 +68,7 @@ class ArestBinarySensor(BinarySensorDevice):
if self._pin is not None:
request = requests.get(
'{}/mode/{}/i'.format(self._resource, self._pin), timeout=10)
if request.status_code is not 200:
if request.status_code != 200:
_LOGGER.error("Can't set mode of %s", self._resource)
@property