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

Add Home Assistant restart safe_mode support #426

Merged
merged 1 commit into from
Oct 25, 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
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class SpookService(AbstractSpookAdminService, ReplaceExistingService):
domain = DOMAIN
service = "restart"
schema = {
vol.Optional("safe_mode", default=False): cv.boolean,
vol.Optional("force", default=False): cv.boolean,
}

Expand Down
8 changes: 8 additions & 0 deletions custom_components/spook/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,14 @@ homeassistant_restart:
name: Restart 👻
description: Restart the Home Assistant service.
fields:
safe_mode:
name: Safe mode
description: >-
If the restart should be done in safe mode. This will disable all
custom integrations and frontend modules.
required: false
selector:
boolean:
force:
name: Force restart
description: >-
Expand Down