Skip to content

Commit

Permalink
Register services
Browse files Browse the repository at this point in the history
  • Loading branch information
rgc99 committed Nov 30, 2023
1 parent 7f2bff1 commit 522ace2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions custom_components/irrigation_unlimited/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
SERVICE_TOGGLE,
SERVICE_LOAD_SCHEDULE,
SERVICE_SUSPEND,
SERVICE_SKIP,
SERVICE_PAUSE,
)


Expand Down Expand Up @@ -62,6 +64,13 @@ def register_platform_services(platform: entity_platform.EntityPlatform) -> None
platform.async_register_entity_service(
SERVICE_SUSPEND, SUSPEND_SCHEMA, async_entity_service_handler
)
platform.async_register_entity_service(
SERVICE_SKIP, ENTITY_SCHEMA, async_entity_service_handler
)

platform.async_register_entity_service(
SERVICE_PAUSE, ENTITY_SCHEMA, async_entity_service_handler
)



Expand Down

0 comments on commit 522ace2

Please sign in to comment.