Skip to content

Commit d790990

Browse files
committed
added missing call to new service for adding missing products to shopping list under async_call_grocy_service
1 parent e6ff660 commit d790990

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

custom_components/grocy/services.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ async def async_call_grocy_service(service_call: ServiceCall) -> None:
201201
elif service == SERVICE_TRACK_BATTERY:
202202
await async_track_battery_service(hass, coordinator, service_data)
203203

204+
elif service == SERVICE_ADD_MISSING_PRODUCTS_TO_SHOPPING_LIST:
205+
await async_add_missing_products_to_shopping_list(hass, coordinator, service_data)
206+
204207
for service, schema in SERVICES_WITH_ACCOMPANYING_SCHEMA:
205208
hass.services.async_register(DOMAIN, service, async_call_grocy_service, schema)
206209

0 commit comments

Comments
 (0)