2019-09-30 00:35:56 +00:00
|
|
|
disable:
|
(Re)Add support for multiple Pi-Holes (#27569)
* Update configuration schema to support multiple Pi-holes
* Construct sensors for each configured Pi-hole
* Ensure each Pi-hole has a unique name
* Update services to handle multiple Pi-holes
* Update tests for multiple configurations
* Refactor tests to support service testing
* Fix else-raise per pyliunt
* Per code review, add all entities in a single call
* Per code review, add the default name as default.
* Per code review, add cv.ensure_list to prevent breaking change
* Per code review, move name validation to schema
* Remove default name
* Per code review, validate api_key in schema definition
* Per code review, rename variables
* Per code review, use list comprehension
* Ensure unique slug names in config validation
* Per code review, refactor to CoroutineMock
* Fix adding sensor entities
* Per code review, refactor mock function creation
* Per code review, refactor mock function return values
2019-12-12 18:43:49 +00:00
|
|
|
description: Disable configured Pi-hole(s) for an amount of time
|
2019-09-30 00:35:56 +00:00
|
|
|
fields:
|
2020-07-18 06:19:01 +00:00
|
|
|
entity_id:
|
|
|
|
description: Target switch entity
|
|
|
|
example: switch.pi_hole
|
2019-09-30 00:35:56 +00:00
|
|
|
duration:
|
|
|
|
description: Time that the Pi-hole should be disabled for
|
|
|
|
example: "00:00:15"
|