mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 01:07:10 +00:00
Esphome fix camera image (#52738)
This commit is contained in:
parent
fe1f7ba316
commit
94e15b3eea
@ -77,7 +77,7 @@ class EsphomeCamera(Camera, EsphomeBaseEntity):
|
|||||||
await self._image_cond.wait()
|
await self._image_cond.wait()
|
||||||
if not self.available:
|
if not self.available:
|
||||||
return None
|
return None
|
||||||
return self._state.image[:]
|
return self._state.data[:]
|
||||||
|
|
||||||
async def _async_camera_stream_image(self) -> bytes | None:
|
async def _async_camera_stream_image(self) -> bytes | None:
|
||||||
"""Return a single camera image in a stream."""
|
"""Return a single camera image in a stream."""
|
||||||
@ -88,7 +88,7 @@ class EsphomeCamera(Camera, EsphomeBaseEntity):
|
|||||||
await self._image_cond.wait()
|
await self._image_cond.wait()
|
||||||
if not self.available:
|
if not self.available:
|
||||||
return None
|
return None
|
||||||
return self._state.image[:]
|
return self._state.data[:]
|
||||||
|
|
||||||
async def handle_async_mjpeg_stream(self, request):
|
async def handle_async_mjpeg_stream(self, request):
|
||||||
"""Serve an HTTP MJPEG stream from the camera."""
|
"""Serve an HTTP MJPEG stream from the camera."""
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "ESPHome",
|
"name": "ESPHome",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/esphome",
|
"documentation": "https://www.home-assistant.io/integrations/esphome",
|
||||||
"requirements": ["aioesphomeapi==4.0.1"],
|
"requirements": ["aioesphomeapi==5.0.0"],
|
||||||
"zeroconf": ["_esphomelib._tcp.local."],
|
"zeroconf": ["_esphomelib._tcp.local."],
|
||||||
"codeowners": ["@OttoWinter", "@jesserockz"],
|
"codeowners": ["@OttoWinter", "@jesserockz"],
|
||||||
"after_dependencies": ["zeroconf", "tag"],
|
"after_dependencies": ["zeroconf", "tag"],
|
||||||
|
@ -160,7 +160,7 @@ aioeafm==0.1.2
|
|||||||
aioemonitor==1.0.5
|
aioemonitor==1.0.5
|
||||||
|
|
||||||
# homeassistant.components.esphome
|
# homeassistant.components.esphome
|
||||||
aioesphomeapi==4.0.1
|
aioesphomeapi==5.0.0
|
||||||
|
|
||||||
# homeassistant.components.flo
|
# homeassistant.components.flo
|
||||||
aioflo==0.4.1
|
aioflo==0.4.1
|
||||||
|
@ -100,7 +100,7 @@ aioeafm==0.1.2
|
|||||||
aioemonitor==1.0.5
|
aioemonitor==1.0.5
|
||||||
|
|
||||||
# homeassistant.components.esphome
|
# homeassistant.components.esphome
|
||||||
aioesphomeapi==4.0.1
|
aioesphomeapi==5.0.0
|
||||||
|
|
||||||
# homeassistant.components.flo
|
# homeassistant.components.flo
|
||||||
aioflo==0.4.1
|
aioflo==0.4.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user