mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
update docstring
This commit is contained in:
parent
8a63325abe
commit
01ed3b18cc
@ -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…
x
Reference in New Issue
Block a user