mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-11-15 10:55:13 +01:00
Fix camera not merging packets (#63)
This commit is contained in:
parent
1696b88b64
commit
33e49a19b5
@ -274,7 +274,8 @@ class APIClient:
|
||||
if isinstance(msg, CameraImageResponse):
|
||||
data = image_stream.pop(msg.key, bytes()) + msg.data
|
||||
if msg.done:
|
||||
on_state(CameraState.from_pb(msg))
|
||||
# Return CameraState with the merged data
|
||||
on_state(CameraState(key=msg.key, data=data))
|
||||
else:
|
||||
image_stream[msg.key] = data
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user