Fix Doods error when detection labels are specified in list form (#28574)

This commit is contained in:
Zach 2019-11-06 02:45:16 -05:00 committed by Martin Hjelmare
parent 438ee99175
commit e99bb8f75e

View File

@ -177,6 +177,7 @@ class Doods(ImageProcessingEntity):
_LOGGER.warning("Detector does not support label %s", label) _LOGGER.warning("Detector does not support label %s", label)
continue continue
self._label_areas[label] = [0, 0, 1, 1] self._label_areas[label] = [0, 0, 1, 1]
self._label_covers[label] = True
if label not in dconfig or dconfig[label] > confidence: if label not in dconfig or dconfig[label] > confidence:
dconfig[label] = confidence dconfig[label] = confidence