From 6a72fce9d1e9d79f91cacfeb7b5d16c72e6df8eb Mon Sep 17 00:00:00 2001 From: Raman Gupta <7243222+raman325@users.noreply.github.com> Date: Wed, 31 Jan 2024 14:40:00 -0500 Subject: [PATCH] Fix services key in icons.json (#2067) --- blog/2024-01-19-icon-translations.md | 2 +- docs/dev_101_services.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blog/2024-01-19-icon-translations.md b/blog/2024-01-19-icon-translations.md index fc92f60c..0ea24f16 100644 --- a/blog/2024-01-19-icon-translations.md +++ b/blog/2024-01-19-icon-translations.md @@ -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" } diff --git a/docs/dev_101_services.md b/docs/dev_101_services.md index b4861aae..6d47e2bd 100644 --- a/docs/dev_101_services.md +++ b/docs/dev_101_services.md @@ -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" }