Skip to content

Commit

Permalink
Add dutch translations and correct link
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstroker committed Jul 2, 2023
1 parent 5b7ba6b commit 14dba30
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/powercalc/sensor.py
Expand Up @@ -265,7 +265,7 @@ async def async_setup_platform(
breaks_in_ha_version=None,
is_fixable=False,
severity=IssueSeverity.WARNING,
learn_more_url="https://www.google.com",
learn_more_url="https://homeassistant-powercalc.readthedocs.io/en/latest/configuration/new-yaml-configuration.yaml",
translation_key="deprecated_platform_yaml",
translation_placeholders={"platform": SENSOR_DOMAIN},
)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/powercalc/translations/en.json
Expand Up @@ -227,7 +227,7 @@
"issues": {
"deprecated_platform_yaml": {
"title": "Powercalc YAML configuration has moved",
"description": "Configuring sensors using `sensor->platform` has been deprecated. You need to change your configuration to `powercalc->sensors`"
"description": "Configuring sensors using `sensor->platform` has been deprecated. You need to change your configuration to `powercalc->sensors`. Click on 'Learn more' for further instructions."
}
}
}
6 changes: 6 additions & 0 deletions custom_components/powercalc/translations/nl.json
Expand Up @@ -223,5 +223,11 @@
}
}
}
},
"issues": {
"deprecated_platform_yaml": {
"title": "Powercalc YAML configuratie is verplaatst",
"description": "Configuratie middels `sensor->platform` is verouderd. Verander je configratie naar `powercalc->sensors`. Klik op 'Meer informatie' voor verder uitleg."
}
}
}

0 comments on commit 14dba30

Please sign in to comment.