Spelling fixes (#12041)

* Spelling fixes

*Lots* of them.

* Spelling breaking changes

* Fix lint errors
This commit is contained in:
Otto Winter authored and Fabian Affolter committed 2018-01-29 23:37:19 +01:00
1 parent 38fd9b65bf
commit 8dcfd35b8b
138 files changed
+285 -286

No files matched your search

+2 -2
View File
@@ -47,7 +47,7 @@ CONDITION_CLASSES = {
DEFAULT_NAME = "Met Office"
VISIBILTY_CLASSES = {
VISIBILITY_CLASSES = {
'VP': '<1',
'PO': '1-4',
'MO': '4-10',
@@ -144,7 +144,7 @@ class MetOfficeCurrentSensor(Entity):
"""Return the state of the sensor."""
if (self._condition == 'visibility_distance' and
hasattr(self.data.data, 'visibility')):
return VISIBILTY_CLASSES.get(self.data.data.visibility.value)
return VISIBILITY_CLASSES.get(self.data.data.visibility.value)
if hasattr(self.data.data, self._condition):
variable = getattr(self.data.data, self._condition)
if self._condition == 'weather':