Await startup in homekit controller (#75021)

This commit is contained in:
J. Nick Koston
2022-07-14 14:44:27 +02:00
committed by GitHub
parent a3c1926da5
commit a31dde9cb4
7 changed files with 133 additions and 30 deletions

View File

@@ -25,7 +25,7 @@ class HomeKitCamera(AccessoryEntity, Camera):
self, width: int | None = None, height: int | None = None
) -> bytes | None:
"""Return a jpeg with the current camera snapshot."""
return await self._accessory.pairing.image(
return await self._accessory.pairing.image( # type: ignore[attr-defined]
self._aid,
width or 640,
height or 480,