From 64a0f95eaa597bdb4db3e681ad7085c7a1a05ccb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 4 Oct 2018 11:39:14 +0200 Subject: [PATCH] Update icon entry (#6502) --- source/_components/input_boolean.markdown | 2 +- source/_components/input_number.markdown | 2 +- source/_components/input_select.markdown | 2 +- source/_components/notify.webostv.markdown | 2 +- source/_components/panel_iframe.markdown | 4 ++-- source/_components/sensor.mqtt.markdown | 4 ++-- source/_components/sensor.netdata.markdown | 2 +- source/_components/switch.mqtt.markdown | 4 ++-- source/_components/weblink.markdown | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/source/_components/input_boolean.markdown b/source/_components/input_boolean.markdown index b5ff27a3f0c..f3ada16039b 100644 --- a/source/_components/input_boolean.markdown +++ b/source/_components/input_boolean.markdown @@ -41,7 +41,7 @@ input_boolean: type: boolean default: false icon: - description: Icon to display for the component. Refer to the [Customizing devices](/docs/configuration/customizing-devices/#possible-values) page for possible values. + description: Icon to display for the component. required: false type: icon {% endconfiguration %} diff --git a/source/_components/input_number.markdown b/source/_components/input_number.markdown index f2301243db0..21028b5b904 100644 --- a/source/_components/input_number.markdown +++ b/source/_components/input_number.markdown @@ -78,7 +78,7 @@ input_number: required: false type: string icon: - description: Icon to display in front of the box/slider in the frontend. Refer to the [Customizing devices](/docs/configuration/customizing-devices/#possible-values) page for possible values. + description: Icon to display in front of the box/slider in the frontend. required: false type: icon {% endconfiguration %} diff --git a/source/_components/input_select.markdown b/source/_components/input_select.markdown index 5948d9d1ac1..ad54719e9b6 100644 --- a/source/_components/input_select.markdown +++ b/source/_components/input_select.markdown @@ -54,7 +54,7 @@ input_select: type: Element of options default: First element of options icon: - description: Icon to display for the component. Refer to the [Customizing devices](/docs/configuration/customizing-devices/#possible-values) page for possible values. + description: Icon to display for the component. required: false type: icon {% endconfiguration %} diff --git a/source/_components/notify.webostv.markdown b/source/_components/notify.webostv.markdown index 41d6e633e0d..65603b7bb0c 100644 --- a/source/_components/notify.webostv.markdown +++ b/source/_components/notify.webostv.markdown @@ -47,7 +47,7 @@ filename: icon: description: The path to an image file to use as the icon in notifications. required: false - type: string + type: [string, icon] {% endconfiguration %} A possible automation could be: diff --git a/source/_components/panel_iframe.markdown b/source/_components/panel_iframe.markdown index 908ca35829b..ba13cf6967b 100644 --- a/source/_components/panel_iframe.markdown +++ b/source/_components/panel_iframe.markdown @@ -55,8 +55,8 @@ panel_iframe: required: true type: string icon: - description: Icon for entry. Pick an icon that you can find on [materialdesignicons.com](https://materialdesignicons.com/) to use for your input and prefix the name with `mdi:`. For example `mdi:car`, `mdi:ambulance`, or `mdi:motorbike`. + description: Icon for entry. required: false - type: string + type: icon {% endconfiguration %} diff --git a/source/_components/sensor.mqtt.markdown b/source/_components/sensor.mqtt.markdown index 0322ad8042b..8b8a0fc07b6 100644 --- a/source/_components/sensor.mqtt.markdown +++ b/source/_components/sensor.mqtt.markdown @@ -47,9 +47,9 @@ unit_of_measurement: required: false type: string icon: - description: Icon for the sensor (e.g. `mdi:gauge`). + description: Icon for the sensor. required: false - type: string + type: icon expire_after: description: Defines the number of seconds after the value expires if it's not updated. required: false diff --git a/source/_components/sensor.netdata.markdown b/source/_components/sensor.netdata.markdown index d815681dd9f..d758364265d 100644 --- a/source/_components/sensor.netdata.markdown +++ b/source/_components/sensor.netdata.markdown @@ -96,7 +96,7 @@ resources: icon: description: Icon to use for the sensor. required: false - type: string + type: icon default: "mdi:desktop-classic" {% endconfiguration %} diff --git a/source/_components/switch.mqtt.markdown b/source/_components/switch.mqtt.markdown index b5d06ee72eb..68ec3dfc3a0 100644 --- a/source/_components/switch.mqtt.markdown +++ b/source/_components/switch.mqtt.markdown @@ -39,9 +39,9 @@ name: type: string default: MQTT Switch icon: - description: Icon for the switch (e.g. `mdi:radiator`). + description: Icon for the switch. required: false - type: string + type: icon state_topic: description: The MQTT topic subscribed to receive state updates. required: false diff --git a/source/_components/weblink.markdown b/source/_components/weblink.markdown index 831e1d73df2..e145d62e1be 100644 --- a/source/_components/weblink.markdown +++ b/source/_components/weblink.markdown @@ -41,7 +41,7 @@ url: icon: description: Icon for entry. required: false - type: string + type: icon {% endconfiguration %} Pick an icon that you can find on [materialdesignicons.com](https://materialdesignicons.com/) to use for your input and prefix the name with `mdi:`. For example `mdi:car`, `mdi:ambulance`, or `mdi:motorbike`.