Skip to content

Commit

Permalink
fix: Fixed HA warning for registering an entity service with a non en…
Browse files Browse the repository at this point in the history
…tity service schema (15 minutes dev time)
  • Loading branch information
BottlecapDave committed Sep 22, 2024
1 parent cc792eb commit 3657a90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions custom_components/harvest_time_tracker/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async def async_setup_entry(hass, entry, async_add_entities):
platform.async_register_entity_service(
"add_time_with_hours",
vol.All(
vol.Schema(
cv.make_entity_service_schema(
{
vol.Required("project_id"): cv.positive_int,
vol.Required("task_id"): cv.positive_int,
Expand All @@ -49,7 +49,7 @@ async def async_setup_entry(hass, entry, async_add_entities):
platform.async_register_entity_service(
"add_time_with_start_end_times",
vol.All(
vol.Schema(
cv.make_entity_service_schema(
{
vol.Required("project_id"): cv.positive_int,
vol.Required("task_id"): cv.positive_int,
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Harvest Time Tracker",
"render_readme": true,
"homeassistant": "2023.12.0"
"homeassistant": "2024.5.0"
}

0 comments on commit 3657a90

Please sign in to comment.