Skip to content

Commit f890d6e

Browse files
authored
Merge pull request #120 from Tvalley71/copilot/update-description-placeholders
Centralize URLs as constants with description placeholders in config flow
2 parents ef4421f + ab69960 commit f890d6e

File tree

6 files changed

+13
-6
lines changed

6 files changed

+13
-6
lines changed

custom_components/dantherm/config_flow.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
}
4343
)
4444

45+
# URL constants for description placeholders
46+
BUYMEACOFFEE_URL = "https://www.buymeacoffee.com/tvalley71"
47+
GITHUB_URL = "https://github.com/Tvalley71/dantherm"
48+
4549
# Debug mode configuration
4650
# Set environment variable DANTHERM_DEBUG=1 to enable debug mode.
4751
# In debug mode:
@@ -210,7 +214,10 @@ async def async_step_init(
210214
return self.async_show_form(
211215
step_id="init",
212216
data_schema=schema,
213-
description_placeholders={},
217+
description_placeholders={
218+
"buymeacoffee_url": BUYMEACOFFEE_URL,
219+
"github_url": GITHUB_URL,
220+
},
214221
)
215222

216223
async def async_step_network(

custom_components/dantherm/translations/da.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"step": {
2626
"init": {
2727
"title": "Dantherm Konfiguration",
28-
"description": "## Velkommen til Dantherm Integrationen! 🏡\n\nDenne integration er skabt af Tvalley71 til Home Assistant fællesskabet. Du er ved at konfigurere avancerede indstillinger for din Dantherm ventilationsenhed.\n\n\n☕ Hvis denne integration hjælper dig, ville jeg virkelig sætte pris på anerkendelsen i form af en stjerne ⭐ på integrationen på GitHub eller måske en kop kaffe på:\nhttps://www.buymeacoffee.com/tvalley71\nhttps://github.com/Tvalley71/dantherm\n\n\n\nDu vil blive guidet gennem 3 konfigurationstrin.",
28+
"description": "## Velkommen til Dantherm Integrationen! 🏡\n\nDenne integration er skabt af Tvalley71 til Home Assistant fællesskabet. Du er ved at konfigurere avancerede indstillinger for din Dantherm ventilationsenhed.\n\n\n☕ Hvis denne integration hjælper dig, ville jeg virkelig sætte pris på anerkendelsen i form af en stjerne ⭐ på integrationen på GitHub eller måske en kop kaffe på:\n{buymeacoffee_url}\n{github_url}\n\n\n\nDu vil blive guidet gennem 3 konfigurationstrin.",
2929
"data": {
3030
"continue": "Fortsæt"
3131
}

custom_components/dantherm/translations/de.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"step": {
2626
"init": {
2727
"title": "Dantherm Configuration",
28-
"description": "## Willkommen zur Dantherm Integration! 🏡\n\nDiese Integration ist von Tvalley71 für die Home Assistant Community erstellt. Sie sind dabei, erweiterte Einstellungen für Ihr Dantherm-Lüftungsgerät zu konfigurieren.\n\n\n☕ Wenn Ihnen diese Integration hilft, würde ich die Anerkennung in Form eines Sterns ⭐ auf der Integration auf GitHub oder vielleicht einer Tasse Kaffee unter wirklich schätzen:\nhttps://www.buymeacoffee.com/tvalley71\nhttps://github.com/Tvalley71/dantherm\n\n\n\nSie werden durch 3 Konfigurationsschritte geführt.",
28+
"description": "## Willkommen zur Dantherm Integration! 🏡\n\nDiese Integration ist von Tvalley71 für die Home Assistant Community erstellt. Sie sind dabei, erweiterte Einstellungen für Ihr Dantherm-Lüftungsgerät zu konfigurieren.\n\n\n☕ Wenn Ihnen diese Integration hilft, würde ich die Anerkennung in Form eines Sterns ⭐ auf der Integration auf GitHub oder vielleicht einer Tasse Kaffee unter wirklich schätzen:\n{buymeacoffee_url}\n{github_url}\n\n\n\nSie werden durch 3 Konfigurationsschritte geführt.",
2929
"data": {
3030
"continue": "Weiter"
3131
}

custom_components/dantherm/translations/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"step": {
2626
"init": {
2727
"title": "Dantherm Configuration",
28-
"description": "## Welcome to the Dantherm Integration! 🏡\n\nThis integration is created by Tvalley71 for the Home Assistant community. You are about to configure advanced settings for your Dantherm ventilation unit.\n\n\n☕ If this integration helps you, I would really appreciate the recognition in the form of a star ⭐ on the integration on GitHub or maybe a cup of coffee at:\nhttps://www.buymeacoffee.com/tvalley71\nhttps://github.com/Tvalley71/dantherm\n\n\n\nYou will be guided through 3 configuration steps.",
28+
"description": "## Welcome to the Dantherm Integration! 🏡\n\nThis integration is created by Tvalley71 for the Home Assistant community. You are about to configure advanced settings for your Dantherm ventilation unit.\n\n\n☕ If this integration helps you, I would really appreciate the recognition in the form of a star ⭐ on the integration on GitHub or maybe a cup of coffee at:\n{buymeacoffee_url}\n{github_url}\n\n\n\nYou will be guided through 3 configuration steps.",
2929
"data": {
3030
"continue": "Continue"
3131
}

custom_components/dantherm/translations/fr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"step": {
2626
"init": {
2727
"title": "Configuration Dantherm",
28-
"description": "## Bienvenue dans l'intégration Dantherm! 🏡\n\nCette intégration est créée par Tvalley71 pour la communauté Home Assistant. Vous êtes sur le point de configurer les paramètres avancés de votre unité de ventilation Dantherm.\n\n\n☕ Si cette intégration vous aide, j'apprécierais vraiment la reconnaissance sous forme d'une étoile ⭐ sur l'intégration sur GitHub ou peut-être une tasse de café à:\nhttps://www.buymeacoffee.com/tvalley71\nhttps://github.com/Tvalley71/dantherm\n\n\n\nVous serez guidé à travers 3 étapes de configuration.",
28+
"description": "## Bienvenue dans l'intégration Dantherm! 🏡\n\nCette intégration est créée par Tvalley71 pour la communauté Home Assistant. Vous êtes sur le point de configurer les paramètres avancés de votre unité de ventilation Dantherm.\n\n\n☕ Si cette intégration vous aide, j'apprécierais vraiment la reconnaissance sous forme d'une étoile ⭐ sur l'intégration sur GitHub ou peut-être une tasse de café à:\n{buymeacoffee_url}\n{github_url}\n\n\n\nVous serez guidé à travers 3 étapes de configuration.",
2929
"data": {
3030
"continue": "Continuer"
3131
}

custom_components/dantherm/translations/nl.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"step": {
2626
"init": {
2727
"title": "Dantherm Configuratie",
28-
"description": "## Welkom bij de Dantherm Integratie! 🏡\n\nDeze integratie is gemaakt door Tvalley71 voor de Home Assistant gemeenschap. U staat op het punt geavanceerde instellingen te configureren voor uw Dantherm ventilatieunit.\n\n\n☕ Als deze integratie u helpt, zou ik de erkenning in de vorm van een ster ⭐ op de integratie op GitHub of misschien een kopje koffie op echt waarderen:\nhttps://www.buymeacoffee.com/tvalley71\nhttps://github.com/Tvalley71/dantherm\n\n\n\nU wordt door 3 configuratiestappen geleid.",
28+
"description": "## Welkom bij de Dantherm Integratie! 🏡\n\nDeze integratie is gemaakt door Tvalley71 voor de Home Assistant gemeenschap. U staat op het punt geavanceerde instellingen te configureren voor uw Dantherm ventilatieunit.\n\n\n☕ Als deze integratie u helpt, zou ik de erkenning in de vorm van een ster ⭐ op de integratie op GitHub of misschien een kopje koffie op echt waarderen:\n{buymeacoffee_url}\n{github_url}\n\n\n\nU wordt door 3 configuratiestappen geleid.",
2929
"data": {
3030
"continue": "Doorgaan"
3131
}

0 commit comments

Comments
 (0)