Fix services key in icons.json (#2067)

This commit is contained in:
Raman Gupta 2024-01-31 14:40:00 -05:00 committed by GitHub
parent 69c704b493
commit 6a72fce9d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ Additionally, services provided by integrations now also support icons and can b
```json
{
"service": {
"services": {
"turn_on": "mdi:lightbulb-on",
"turn_off": "mdi:lightbulb-off"
}

View File

@ -173,13 +173,13 @@ This is a partial example of a field which is only shown if at least one selecte
Services can also have icons. These icons are used in the Home Assistant UI when displaying the service in places like the automation and script editors.
The icon to use for each service can be defined in the `icons.json` translation file in the integration folder, under the `service` key. The key should be the service name, and the value should be the icon to use.
The icon to use for each service can be defined in the `icons.json` translation file in the integration folder, under the `services` key. The key should be the service name, and the value should be the icon to use.
The following example, shows how to provide icons for the `turn_on` and `turn_off` services of an integration:
```json
{
"service": {
"services": {
"turn_on": "mdi:lightbulb-on",
"turn_off": "mdi:lightbulb-off"
}