Fix pylint 1.7.2 no-else-return issues (#8361)
* Fix pylint 1.7.2 no-else-return issues * Update tomato.py
This commit is contained in:
1 parent
5779d64e98
commit
46e030662d
111 files changed
+305
-455
No files matched your search
@@ -57,9 +57,9 @@ class DlibFaceIdentifyEntity(ImageProcessingFaceEntity):
|
||||
split_entity_id(camera_entity)[1])
|
||||
|
||||
self._faces = {}
|
||||
for name, face_file in faces.items():
|
||||
for face_name, face_file in faces.items():
|
||||
image = face_recognition.load_image_file(face_file)
|
||||
self._faces[name] = face_recognition.face_encodings(image)[0]
|
||||
self._faces[face_name] = face_recognition.face_encodings(image)[0]
|
||||
|
||||
@property
|
||||
def camera_entity(self):
|
||||
|
||||
Reference in new issue
Block a user