Skip to content

Commit f1f8d04

Browse files
committed
Resolve chained deprecation methods
1 parent 7f97e7f commit f1f8d04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fmd_api/device.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ async def download_photo(self, picture_blob_b64: str) -> PhotoResult:
107107
We decrypt the blob to get a base64-encoded image string; decode that to bytes and return.
108108
"""
109109
warnings.warn(
110-
"Device.download_photo() is deprecated; use get_picture()",
110+
"Device.download_photo() is deprecated; use decode_picture()",
111111
DeprecationWarning,
112112
stacklevel=2,
113113
)
114-
return await self.get_picture(picture_blob_b64)
114+
return await self.decode_picture(picture_blob_b64)
115115

116116
async def take_front_picture(self) -> bool:
117117
"""Request a picture from the front camera."""

0 commit comments

Comments
 (0)