update docstring
This commit is contained in:
parent
8a63325abe
commit
01ed3b18cc
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ class MqttSensor(Entity):
|
|||
self._unit_of_measurement = unit_of_measurement
|
||||
|
||||
def message_received(topic, payload, qos):
|
||||
""" A new MQTT message has been received. """
|
||||
self._state = payload
|
||||
self.update_ha_state()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue