From d5d16d1616068283541d3c1fc22a52120e236e00 Mon Sep 17 00:00:00 2001 From: ptvo <33662022+ptvoinfo@users.noreply.github.com> Date: Fri, 9 Apr 2021 15:52:41 +0300 Subject: [PATCH] Update schema with the Icon device property. (#7018) * Device-specific icon * Updated tests. * Updated test * Updated tests * Updated tests. * Updated tests * Update schema with the Icon device property. * Fix Co-authored-by: ptvoinfo --- lib/util/settings.schema.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/util/settings.schema.json b/lib/util/settings.schema.json index 2f2855eb0..bade25fa1 100644 --- a/lib/util/settings.schema.json +++ b/lib/util/settings.schema.json @@ -702,6 +702,11 @@ "examples": ["temperature", "battery", "action"], "title": "Filtered attributes", "description": "Allows to prevent certain attributes from being published" + }, + "icon": { + "type": "string", + "title": "Icon", + "description": "The user-defined device icon for the frontend. It can be a link to an image (not a path to a file) or base64 encoded data URL like: image/svg+xml;base64,PHN2ZyB3aW....R0aD" } }, "required": ["friendly_name"]