Fix lint issues for 0.33 (#4451)
* Fix PEP257 issues * Fix ident * Fix lint issues * Update docstrings * Fix indent * Fix indent * Fix lint issues * Fix lint issue * Again lint
This commit is contained in:
1 parent
c86e1b31b3
commit
e6c4113c5b
7 files changed
+76
-61
No files matched your search
@@ -125,8 +125,8 @@ class WUndergroundSensor(Entity):
|
||||
"""Return the state of the sensor."""
|
||||
if self.rest.data:
|
||||
|
||||
if self._condition == 'elevation' and \
|
||||
self._condition in self.rest.data['observation_location']:
|
||||
if self._condition == 'elevation' and self._condition in \
|
||||
self.rest.data['observation_location']:
|
||||
return self.rest.data['observation_location'][self._condition]\
|
||||
.split()[0]
|
||||
|
||||
|
||||
Reference in new issue
Block a user