mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Fix doods missing detector name kwarg (#26784)
* Fix missing detector name kwarg * Updated requirements_all.txt * Reformatted
This commit is contained in:
parent
a9ff15077c
commit
9e79920c9c
@ -139,6 +139,7 @@ class Doods(ImageProcessingEntity):
|
|||||||
self._name = f"Doods {name}"
|
self._name = f"Doods {name}"
|
||||||
self._doods = doods
|
self._doods = doods
|
||||||
self._file_out = config[CONF_FILE_OUT]
|
self._file_out = config[CONF_FILE_OUT]
|
||||||
|
self._detector_name = detector["name"]
|
||||||
|
|
||||||
# detector config and aspect ratio
|
# detector config and aspect ratio
|
||||||
self._width = None
|
self._width = None
|
||||||
@ -289,7 +290,9 @@ class Doods(ImageProcessingEntity):
|
|||||||
|
|
||||||
# Run detection
|
# Run detection
|
||||||
start = time.time()
|
start = time.time()
|
||||||
response = self._doods.detect(image, self._dconfig)
|
response = self._doods.detect(
|
||||||
|
image, dconfig=self._dconfig, detector_name=self._detector_name
|
||||||
|
)
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
"doods detect: %s response: %s duration: %s",
|
"doods detect: %s response: %s duration: %s",
|
||||||
self._dconfig,
|
self._dconfig,
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
"name": "DOODS - Distributed Outside Object Detection Service",
|
"name": "DOODS - Distributed Outside Object Detection Service",
|
||||||
"documentation": "https://www.home-assistant.io/components/doods",
|
"documentation": "https://www.home-assistant.io/components/doods",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"pydoods==1.0.1"
|
"pydoods==1.0.2"
|
||||||
],
|
],
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"codeowners": []
|
"codeowners": []
|
||||||
}
|
}
|
||||||
|
@ -1140,7 +1140,7 @@ pydelijn==0.5.1
|
|||||||
pydispatcher==2.0.5
|
pydispatcher==2.0.5
|
||||||
|
|
||||||
# homeassistant.components.doods
|
# homeassistant.components.doods
|
||||||
pydoods==1.0.1
|
pydoods==1.0.2
|
||||||
|
|
||||||
# homeassistant.components.android_ip_webcam
|
# homeassistant.components.android_ip_webcam
|
||||||
pydroid-ipcam==0.8
|
pydroid-ipcam==0.8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user