- Make camera image async
- Bump to v1.12.0
This commit is contained in:
ia74 2025-08-17 20:22:29 -05:00
parent 75d4429233
commit c3aefa8a21
3 changed files with 12 additions and 7 deletions

View file

@ -20,7 +20,7 @@ import aiohttp
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
# Debug: Save UMF data to file for analysis # Debug: Save UMF data to file for analysis
DEBUG_SAVE_UMF = True DEBUG_SAVE_UMF = False
DEBUG_UMF_PATH = Path("/workspaces/ha-core/config/debug_umf_data.json") DEBUG_UMF_PATH = Path("/workspaces/ha-core/config/debug_umf_data.json")
@ -450,7 +450,8 @@ class iRobotCloudApi:
umf_data = await self._aws_request(url, params) umf_data = await self._aws_request(url, params)
# Save UMF data for debugging/camera development # Save UMF data for debugging/camera development
await self._save_umf_data_for_debug(pmap_id, umf_data) # TODO: Enable during development.
# await self._save_umf_data_for_debug(pmap_id, umf_data)
return umf_data return umf_data

View file

@ -152,7 +152,7 @@ class RoombaMapCamera(Camera):
sw_version=rdata["softwareVer"], sw_version=rdata["softwareVer"],
) )
def camera_image( async def async_camera_image(
self, width: int | None = None, height: int | None = None self, width: int | None = None, height: int | None = None
) -> bytes | None: ) -> bytes | None:
"""Return camera image.""" """Return camera image."""

View file

@ -1,7 +1,9 @@
{ {
"domain": "roomba_rest980", "domain": "roomba_rest980",
"name": "Roomba (Rest980)", "name": "Roomba (Rest980)",
"codeowners": ["@ia74"], "codeowners": [
"@ia74"
],
"config_flow": true, "config_flow": true,
"dependencies": [], "dependencies": [],
"dhcp": [ "dhcp": [
@ -26,8 +28,10 @@
"iot_class": "local_polling", "iot_class": "local_polling",
"issue_tracker": "https://github.com/ia74/roomba_rest980/issues", "issue_tracker": "https://github.com/ia74/roomba_rest980/issues",
"quality_scale": "bronze", "quality_scale": "bronze",
"requirements": ["aiofiles==24.1.0"], "requirements": [
"version": "1.11.0", "aiofiles==24.1.0"
],
"version": "1.12.0",
"zeroconf": [ "zeroconf": [
{ {
"type": "_amzn-alexa._tcp.local.", "type": "_amzn-alexa._tcp.local.",
@ -38,4 +42,4 @@
"name": "roomba-*" "name": "roomba-*"
} }
] ]
} }