Apply suggestions from code review of branch camera-metadata
This commit is contained in:
parent
9db2cb9545
commit
24be993478
1 changed files with 2 additions and 2 deletions
|
|
@ -465,7 +465,7 @@ class BaseCamera(lt.Thing):
|
||||||
self,
|
self,
|
||||||
metadata_getter: lt.deps.GetThingStates,
|
metadata_getter: lt.deps.GetThingStates,
|
||||||
logger: lt.deps.InvocationLogger,
|
logger: lt.deps.InvocationLogger,
|
||||||
) -> Image:
|
) -> Tuple[Image, Mapping[str, Any]]:
|
||||||
"""Capture an image in memory and return it with metadata.
|
"""Capture an image in memory and return it with metadata.
|
||||||
|
|
||||||
This robust capturing method attempts to capture the image five times
|
This robust capturing method attempts to capture the image five times
|
||||||
|
|
@ -490,7 +490,7 @@ class BaseCamera(lt.Thing):
|
||||||
|
|
||||||
def _capture_metadata(
|
def _capture_metadata(
|
||||||
self,
|
self,
|
||||||
metadata: dict,
|
metadata: Mapping[str, Any],
|
||||||
) -> dict:
|
) -> dict:
|
||||||
"""Return the metadata for a capture, from the thing states, time and known names."""
|
"""Return the metadata for a capture, from the thing states, time and known names."""
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue