From 01c267fc5e33d4a86986f0ae289b36be873811fb Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Tue, 1 May 2018 22:26:02 +0200 Subject: [PATCH] MQTT Sensor Device Class Docs (#5252) * MQTT Sensor Device Class * Remove formatting * Other small fix --- source/_components/sensor.mqtt.markdown | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/_components/sensor.mqtt.markdown b/source/_components/sensor.mqtt.markdown index 5f36c9de1d1..b6e5c4b0d21 100644 --- a/source/_components/sensor.mqtt.markdown +++ b/source/_components/sensor.mqtt.markdown @@ -81,9 +81,14 @@ json_attributes: reqired: false type: list, string unique_id: - description: "An id that uniquely identifies this sensor. If 2 sensors have the same unique id, Home Assistant will raise an exception.**" + description: "An ID that uniquely identifies this sensor. If two sensors have the same unique ID, Home Assistant will raise an exception." required: false type: string +device_class: + description: The type/class of the sensor to set the icon in the frontend. + required: false + type: device_class + default: None {% endconfiguration %} ## {% linkable_title Examples %}