Skip to content

Commit

Permalink
Merge pull request #270 from sca075/refactoring_camera
Browse files Browse the repository at this point in the history
update manifest
  • Loading branch information
sca075 authored Nov 16, 2024
2 parents 96451fd + f1a68dd commit c2cd257
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions custom_components/mqtt_vacuum_camera/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,12 @@ async def vacuum_map_save(call: ServiceCall) -> None:
"payload": {
"command": "store_map",
"name": map_name,
}
},
}
else:
raise ServiceValidationError("This feature is only available for rand256 vacuums.")
raise ServiceValidationError(
"This feature is only available for rand256 vacuums."
)
try:
await data_coordinator.connector.publish_to_broker(
service_data["topic"],
Expand Down Expand Up @@ -268,10 +270,12 @@ async def vacuum_map_load(call: ServiceCall) -> None:
"payload": {
"command": "load_map",
"name": map_name,
}
},
}
else:
raise ServiceValidationError("This feature is only available for rand256 vacuums.")
raise ServiceValidationError(
"This feature is only available for rand256 vacuums."
)
try:
await data_coordinator.connector.publish_to_broker(
service_data["topic"],
Expand All @@ -289,7 +293,6 @@ async def vacuum_map_load(call: ServiceCall) -> None:
except KeyError as e:
_LOGGER.error(f"Missing required parameter: {e}")


async def reset_trims(call: ServiceCall) -> None:
"""Action Reset Map Trims."""
_LOGGER.debug(f"Resetting trims for {DOMAIN}")
Expand Down
2 changes: 1 addition & 1 deletion custom_components/mqtt_vacuum_camera/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/sca075/mqtt_vacuum_camera/issues",
"requirements": ["pillow>=10.3.0,<=11.0.0", "numpy"],
"version": "2024.11.0b0"
"version": "2024.11.0"
}

0 comments on commit c2cd257

Please sign in to comment.