Skip to content

Commit

Permalink
Add translations for download_statistics service call
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrMachowski committed Jan 13, 2024
1 parent 72c8f80 commit dc759f9
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ This sensor uses unofficial API to get energy usage and generation data from [*T

To configure this integration go to: _Configuration_ -> _Integrations_ -> _Add integration_ -> _Tauron AMIplus_.

You can also use following [My Home Assistant](http://my.home-assistant.io/) link
You can also use following [My Home Assistant](http://my.home-assistant.io/) link:

[![Open your Home Assistant instance and start setting up a new integration.](https://my.home-assistant.io/badges/config_flow_start.svg)](https://my.home-assistant.io/redirect/config_flow_start/?domain=tauron_amiplus)

Expand Down
20 changes: 18 additions & 2 deletions custom_components/tauron_amiplus/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"config_options": {
"title": "Configuration",
"description": "Select data that should be downloaded by the integration.\nDo not enable entries that aren't necessary to avoid excessive data loading times.\n\n {error_info} ",
"description": "Select data that should be downloaded by the integration.\nDo not enable entries that aren't necessary to avoid excessive data loading times.",
"data": {
"energy_meter_name": "Name of the energy meter that should be used in UI",
"show_generation_sensors": "Enable downloading energy generation data",
Expand All @@ -44,7 +44,7 @@
"step": {
"user": {
"title": "Configuration",
"description": "Select data that should be downloaded by the integration.\nDo not enable entries that aren't necessary to avoid excessive data loading times.\n\n {error_info} ",
"description": "Select data that should be downloaded by the integration.\nDo not enable entries that aren't necessary to avoid excessive data loading times.",
"data": {
"show_generation_sensors": "Enable downloading energy generation data",
"show_balanced_sensors": "Enable calculating balanced energy usage data",
Expand All @@ -59,5 +59,21 @@
"error": {
"missing_configurable_start_date": "Missing start date for configurable sensors"
}
},
"services": {
"download_statistics": {
"name": "Download statistics",
"description": "Downloads statistics for a given meter. Overrides all already downloaded data.",
"fields": {
"device_id": {
"name": "Target device",
"description": "The device to download statistics for."
},
"start_date": {
"name": "Start date",
"description": "Start date of statistics to download."
}
}
}
}
}
16 changes: 16 additions & 0 deletions custom_components/tauron_amiplus/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,21 @@
"error": {
"missing_configurable_start_date": "Missing start date for configurable sensors"
}
},
"services": {
"download_statistics": {
"name": "Download statistics",
"description": "Downloads statistics for a given meter. Overrides all already downloaded data.",
"fields": {
"device_id": {
"name": "Target device",
"description": "The device to download statistics for."
},
"start_date": {
"name": "Start date",
"description": "Start date of statistics to download."
}
}
}
}
}
16 changes: 16 additions & 0 deletions custom_components/tauron_amiplus/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,21 @@
"error": {
"missing_configurable_start_date": "Nie skonfigurowano początku okresu dla sensorów konfigurowalnych"
}
},
"services": {
"download_statistics": {
"name": "Pobierz statystyki",
"description": "Pobiera dane historyczne dla wybranego urządzenia nadpisując wszystkie dotychczas pobrane wartości.",
"fields": {
"device_id": {
"name": "Docelowe urządzenie",
"description": "Urządzenie dla którego będą pobrane statystyki."
},
"start_date": {
"name": "Data początkowa.",
"description": "Data od której będą pobrane statystyki."
}
}
}
}
}

0 comments on commit dc759f9

Please sign in to comment.