Skip to content

Commit

Permalink
Esphome fix camera image (home-assistant#52738)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored and sjiampojamarn committed Jul 8, 2021
1 parent 8f2e6bd commit a066565
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/esphome/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def async_camera_image(self) -> bytes | None:
await self._image_cond.wait()
if not self.available:
return None
return self._state.image[:]
return self._state.data[:]

async def _async_camera_stream_image(self) -> bytes | None:
"""Return a single camera image in a stream."""
Expand All @@ -88,7 +88,7 @@ async def _async_camera_stream_image(self) -> bytes | None:
await self._image_cond.wait()
if not self.available:
return None
return self._state.image[:]
return self._state.data[:]

async def handle_async_mjpeg_stream(self, request):
"""Serve an HTTP MJPEG stream from the camera."""
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/esphome/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "ESPHome",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/esphome",
"requirements": ["aioesphomeapi==4.0.1"],
"requirements": ["aioesphomeapi==5.0.0"],
"zeroconf": ["_esphomelib._tcp.local."],
"codeowners": ["@OttoWinter", "@jesserockz"],
"after_dependencies": ["zeroconf", "tag"],
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ aioeafm==0.1.2
aioemonitor==1.0.5

# homeassistant.components.esphome
aioesphomeapi==4.0.1
aioesphomeapi==5.0.0

# homeassistant.components.flo
aioflo==0.4.1
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ aioeafm==0.1.2
aioemonitor==1.0.5

# homeassistant.components.esphome
aioesphomeapi==4.0.1
aioesphomeapi==5.0.0

# homeassistant.components.flo
aioflo==0.4.1
Expand Down

0 comments on commit a066565

Please sign in to comment.