Apply suggestions from code review of branch camera-metadata

This commit is contained in:
Joe Knapper 2025-10-22 11:26:36 +00:00 committed by Julian Stirling
parent 9db2cb9545
commit 24be993478

View file

@ -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 {