mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Fixed a typo in code listing. (#3363)
This commit is contained in:
parent
2ddd82155e
commit
762fb28ab4
@ -46,7 +46,7 @@ def setup(hass, config):
|
|||||||
# Subscribe our listener to a topic.
|
# Subscribe our listener to a topic.
|
||||||
mqtt.subscribe(hass, topic, message_received)
|
mqtt.subscribe(hass, topic, message_received)
|
||||||
|
|
||||||
# Set the intial state
|
# Set the initial state.
|
||||||
hass.states.set(entity_id, 'No messages')
|
hass.states.set(entity_id, 'No messages')
|
||||||
|
|
||||||
# Service to publish a message on MQTT.
|
# Service to publish a message on MQTT.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user