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

@@ -36,7 +36,7 @@ def validate_attributes(list_attributes):
"""Validate face attributes."""
for attr in list_attributes:
if attr not in SUPPORTED_ATTRIBUTES:
raise vol.Invalid("Invalid attribtue {0}".format(attr))
raise vol.Invalid("Invalid attribute {0}".format(attr))
return list_attributes
@@ -201,7 +201,7 @@ class MicrosoftFaceIdentifyEntity(ImageProcessingFaceEntity):
return
# Parse data
knwon_faces = []
known_faces = []
total = 0
for face in detect:
total += 1
@@ -215,9 +215,9 @@ class MicrosoftFaceIdentifyEntity(ImageProcessingFaceEntity):
name = s_name
break
knwon_faces.append({
known_faces.append({
ATTR_NAME: name,
ATTR_CONFIDENCE: data['confidence'] * 100,
})
self.async_process_faces(knwon_faces, total)
self.async_process_faces(known_faces, total)
@@ -66,7 +66,7 @@ class ImageProcessingSsocr(ImageProcessingEntity):
if name:
self._name = name
else:
self._name = "SevenSegement OCR {0}".format(
self._name = "SevenSegment OCR {0}".format(
split_entity_id(camera_entity)[1])
self._state = None