diff --git a/components/button/index.rst b/components/button/index.rst index e8054733a..c91b1fac8 100644 --- a/components/button/index.rst +++ b/components/button/index.rst @@ -7,7 +7,7 @@ Button Component .. note:: - To attach a physical buttons to ESPHome, see + To attach a physical button to ESPHome, see :doc:`GPIO Binary Sensor `. ESPHome has support for components to create button entities in Home Assistant. A button entity is diff --git a/custom/custom_component.rst b/custom/custom_component.rst index 801df3700..7b65840e1 100644 --- a/custom/custom_component.rst +++ b/custom/custom_component.rst @@ -157,7 +157,7 @@ custom components that communicate using MQTT. publish("the/other/topic", 42); } } - void on_json_message(JsonObject &root) { + void on_json_message(JsonObject root) { if (!root.containsKey("key")) return; @@ -165,7 +165,7 @@ custom components that communicate using MQTT. // do something with Json Object // publish JSON using lambda syntax - publish_json("the/other/json/topic", [=](JsonObject &root2) { + publish_json("the/other/json/topic", [=](JsonObject root2) { root2["key"] = "Hello World"; }); }