Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename remove area to delete area #50

Merged
merged 1 commit into from
Mar 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ Call it using: [`homeassistant.create_area`](https://my.home-assistant.io/redire

> Instantly create new rooms in your home. _#BobTheBuilder_

## Service: Remove area
## Service: Delete area

Call it using: [`homeassistant.remove_area`](https://my.home-assistant.io/redirect/developer_call_service/?service=homeassistant.remove_area)
Call it using: [`homeassistant.delete_area`](https://my.home-assistant.io/redirect/developer_call_service/?service=homeassistant.delete_area)

> Just like that, you made an area of your home dissapear. _#DemolitionMan_

Expand Down
8 changes: 4 additions & 4 deletions custom_components/spook/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ homeassistant_create_area:
selector:
object:

homeassistant_remove_area:
name: Remove an area 👻
homeassistant_delete_area:
name: Delete an area 👻
description: >-
Removes a new area on the fly.
Deletes a new area on the fly.
fields:
name:
name: Area ID
description: The ID of the area to remove.
description: The ID of the area to delete.
required: true
selector:
area:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@


class SpookService(AbstractSpookAdminService):
"""Home Assistant area service to remove areas on the fly."""
"""Home Assistant area service to delete areas on the fly."""

domain = DOMAIN
service = "remove_area"
service = "delete_area"
schema = {vol.Required("area_id"): cv.string}

async def async_handle_service(self, call: ServiceCall) -> None:
Expand Down