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: