From ed8d51ab66ec963427df0885180801412ac4c996 Mon Sep 17 00:00:00 2001 From: rgc99 Date: Wed, 2 Jun 2021 21:50:52 +0000 Subject: [PATCH] Service call shims initial work --- pyscript/irrigation_unlimited_service_shim.py | 136 ++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100755 pyscript/irrigation_unlimited_service_shim.py diff --git a/pyscript/irrigation_unlimited_service_shim.py b/pyscript/irrigation_unlimited_service_shim.py new file mode 100755 index 0000000..20f2291 --- /dev/null +++ b/pyscript/irrigation_unlimited_service_shim.py @@ -0,0 +1,136 @@ +import json +import re + +@service('irrigation_unlimited.list_config') +def irrigation_unlimited_list_config(entity_id, section, first=None): + """yaml +name: List configuration +description: Load up an input_select entity with Irrigation Unlimited config data +fields: + entity_id: + description: An entity from the input_select domain + example: input_select.irrigation_unlimited_entities + required: true + selector: + entity: + domain: input_select + + section: + description: The type of list to load up + example: entities + required: true + selector: + select: + options: + - entities + - sequences + + first: + description: The first item in the list + example: