Updated translation for conformity with yamllint

This commit is contained in:
Etienne G
2023-08-15 00:35:15 +10:00
parent 32794e09da
commit 353250f517
2 changed files with 49 additions and 5 deletions
+32
View File
@@ -0,0 +1,32 @@
# use pydoit to run the pipeline
# url: http://pydoit.org/
# install pydoit: pip install doit (or pipx)
import os
import glob
BUILDS = [
"grott",
"grott-edge",
]
TRANSLATIONS_FOLDER = "translations"
def task_copy_translations():
"""Copy translations from the source to the translations folder."""
translations = glob.glob(f"{TRANSLATIONS_FOLDER}/*.yaml")
for build in BUILDS:
for translation in translations:
# get the file basename
translation = os.path.basename(translation)
yield {
"name": f"copy {translation} to {build}",
"actions": [
f"mkdir -p {build}/translations",
f"cp {TRANSLATIONS_FOLDER}/{translation} {build}/translations/{translation}",
],
"file_dep": [f"{TRANSLATIONS_FOLDER}/{translation}"],
"targets": [f"{build}/translations/{translation}"],
}
+17 -5
View File
@@ -5,22 +5,34 @@ configuration:
description: Enable the verbose mode. Useful for debugging description: Enable the verbose mode. Useful for debugging
retain: retain:
name: Activate MQTT retain name: Activate MQTT retain
description: This allow to keep the values between reboot, prevent showing sensor values as unknown description: >-
This allow to keep the values between reboot, prevent showing sensor
values as unknown
gminrecl: gminrecl:
name: Minimum record length name: Minimum record length
description: The minimum packet length to be treated description: The minimum packet length to be treated
grott_mqtt: grott_mqtt:
name: Enable grott MQTT name: Enable grott MQTT
description: Allow grott to send MQTT messages. If your are using the grott_ha extension, you don't need this. If you are using the grott integration,m you need to enable it. description: >-
Allow grott to send MQTT messages. If your are using
the grott_ha extension, you don't need this.
If you are using the grott integration, you need to enable it.
ginvtype: ginvtype:
name: Inverter type name: Inverter type
description: "For changing the layout used for decoding (ex: sph, spf or tl3). Keep it on default if using inverter map." description: >-
For changing the layout used for decoding
(ex: sph, spf or tl3). Keep it on default if using inverter map.
ginvtypemap: ginvtypemap:
name: Inverter mapping name: Inverter mapping
description: 'An inverter mapping in the form {"SERIAL": "type"} e.g.: for an SPH6000 with serial "NWO00415E3" : {"NWO00415E3": "sph"}' description: >-
An inverter mapping in the form {"SERIAL": "type"}
e.g.: for an SPH6000 with serial "NWO00415E3" : {"NWO00415E3": "sph"}
ha_plugin: ha_plugin:
name: Home Assistant plugin name: Home Assistant plugin
description: "Enable the Home Assistant plugin. This will send the data to Home Assistant via the grott HA plugin. Can be disabled if you are using the grott integration." description: >-
Enable the Home Assistant plugin.
This will send the data to Home Assistant via the grott HA plugin.
Can be disabled if you are using the grott integration.
network: network:
5279/TCP: This is the port used by grott to receive datalogger information. 5279/TCP: This is the port used by grott to receive datalogger information.