for #1: could you possibly rename your plugin files to something like moisture_sensor_info_mqtt.*? I know this could be a real pain. I will look for another solution.
for #2 The jmespath module looks pretty useful. I will consider adding it to the base SIP install even though I prefer to keep things as small and simple as possible.
Edit:
I think the best solution for 1 would be to replace
with
Still need to do some testing.
for #2 The jmespath module looks pretty useful. I will consider adding it to the base SIP install even though I prefer to keep things as small and simple as possible.
Edit:
I think the best solution for 1 would be to replace
Code:
short_list = [
x for x in file_list if not "data" in x and not "manifest" in x
]
Code:
short_list = []
for line in file_list:
parts = line.split()
if (not parts[1] == "data"
and not parts[1] == "plugins/manifests"
):
short_list.append(line)
<p><br></p>