Fixed a typo in code listing. (#3363)
This commit is contained in:
parent
2ddd82155e
commit
762fb28ab4
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue