✏️ The great integration migration - part 2 (#9760)

* ✏️ The great integration migration - part 2

* ✏️ Tweak
This commit is contained in:
Klaas Schoute
2019-07-03 13:48:38 +02:00
committed by Franck Nijhof
parent 9ae34605af
commit b1ef4996eb
42 changed files with 62 additions and 57 deletions

View File

@@ -11,10 +11,10 @@ ha_category: Custom Python Component Examples
---
<p class='note'>
This example requires you to have the [MQTT component](/components/mqtt/) up and running.
This example requires you to have the [MQTT integration](/components/mqtt/) up and running.
</p>
This is a simple hello world example to show the basics of using MQTT in a custom component. To use this example, create the file `<config dir>/custom_components/hello_mqtt.py` and copy the below example code.
This is a simple hello world example to show the basics of using MQTT in a custom integration. To use this example, create the file `<config dir>/custom_components/hello_mqtt.py` and copy the below example code.
This example follows a topic on MQTT and updates the state of an entity to the last message received on that topic. It will also register a service 'set_state' that will publish a message to the MQTT topic that we're listening to.