Skip to content

Commit

Permalink
Add Home Assistant restart safe_mode support (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Oct 25, 2023
1 parent f61a761 commit 393999b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
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

0 comments on commit 393999b

Please sign in to comment.