Add Pi-hole enable and disable services (#27055)
* Add service to disable pihole * Add service to enable pihole * Redefine optional string validator * code review changes * Change service parameter to timedelta * code review changes
This commit is contained in:
parent
5bd3d4aa0b
commit
245e51df7a
3 changed files with 55 additions and 1 deletions
|
@ -12,6 +12,10 @@ DEFAULT_NAME = "Pi-Hole"
|
|||
DEFAULT_SSL = False
|
||||
DEFAULT_VERIFY_SSL = True
|
||||
|
||||
SERVICE_DISABLE = "disable"
|
||||
SERVICE_ENABLE = "enable"
|
||||
SERVICE_DISABLE_ATTR_DURATION = "duration"
|
||||
|
||||
ATTR_BLOCKED_DOMAINS = "domains_blocked"
|
||||
|
||||
MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=5)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue