Skip to content

Commit

Permalink
Rename remove all orphaned entities service to delete (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Mar 10, 2023
1 parent e22325f commit ac1c58d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,17 +260,17 @@ Call it using: [`homeassistant.ignore_all_discovered`](https://my.home-assistant
> Click ignore on all discovered items on the integration dashboard; optionally
> only for specific integration (e.g., bluetooth). _#talktothehand_
## Service: Remove all orphaned entities
## Service: Delete all orphaned entities

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

> Removes all orphaned entities that no longer have an integration that claim/provide
> Deletes all orphaned entities that no longer have an integration that claim/provide
> them. Please note, if the integration was just removed, it might need a restart
> for Home Assistant to realize they are orphaned. _#annie_
> **WARNING** Entities might have been marked orphaned because an
> integration is offline or not working since Home Assistant started. Calling
> this service will remove those entities as well.
> this service will delete those entities as well.
## Service: Import statistics

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 @@ -190,16 +190,16 @@ homeassistant_enable_polling:
selector:
config_entry:

homeassistant_remove_all_orphaned_entities:
name: Remove all orphaned entities 👻
homeassistant_delete_all_orphaned_entities:
name: Delete all orphaned entities 👻
description: >-
Removes all orphaned entities that no longer have an integration that
Deletes all orphaned entities that no longer have an integration that
claim/provide them. Please note, if the integration was just removed,
it might need a restart for Home Assistant to realize they are orphaned.
**WARNING** Entities might have been marked orphaned because an
integration is offline or not working since Home Assistant started. Calling
this service will remove those entities as well.
this service will delete those entities as well.
recorder_import_statistics:
name: Import statistics 👻
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@


class SpookService(AbstractSpookAdminService):
"""Home Assistant Core integration service to remove all orphaned entities."""
"""Home Assistant Core integration service to delete all orphaned entities."""

domain = DOMAIN
service = "remove_all_orphaned_entities"
service = "delete_all_orphaned_entities"

async def async_handle_service(self, call: ServiceCall) -> None:
"""Handle the service call."""
Expand Down

0 comments on commit ac1c58d

Please sign in to comment.