diff --git a/homeassistant/components/sensor/mqtt.py b/homeassistant/components/sensor/mqtt.py index 1af8614a7dc..b6c7a7b4ea1 100644 --- a/homeassistant/components/sensor/mqtt.py +++ b/homeassistant/components/sensor/mqtt.py @@ -4,9 +4,9 @@ homeassistant.components.sensor.mqtt ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Allows to configure a MQTT sensor. -This generic sensor implementation uses the MQTT message payload +This generic sensor implementation uses the MQTT message payload as the sensor value. If messages in this state_topic are published -with RETAIN flag, the sensor will receive an instant update with +with RETAIN flag, the sensor will receive an instant update with last known value. Otherwise, the initial state will be undefined. sensor: