mirror of
https://github.com/home-assistant/core.git
synced 2025-11-16 14:30:22 +00:00
Fix image-processing type hint (#78426)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
"""Support for the demo image processing."""
|
||||
from __future__ import annotations
|
||||
|
||||
from homeassistant.components.camera import Image
|
||||
from homeassistant.components.image_processing import (
|
||||
FaceInformation,
|
||||
ImageProcessingFaceEntity,
|
||||
@@ -49,7 +48,7 @@ class DemoImageProcessingAlpr(ImageProcessingAlprEntity):
|
||||
"""Return minimum confidence for send events."""
|
||||
return 80
|
||||
|
||||
def process_image(self, image: Image) -> None:
|
||||
def process_image(self, image: bytes) -> None:
|
||||
"""Process image."""
|
||||
demo_data = {
|
||||
"AC3829": 98.3,
|
||||
@@ -81,7 +80,7 @@ class DemoImageProcessingFace(ImageProcessingFaceEntity):
|
||||
"""Return minimum confidence for send events."""
|
||||
return 80
|
||||
|
||||
def process_image(self, image: Image) -> None:
|
||||
def process_image(self, image: bytes) -> None:
|
||||
"""Process image."""
|
||||
demo_data = [
|
||||
FaceInformation(
|
||||
|
||||
Reference in New Issue
Block a user