From 34be440cbe92dbf74e31f901ea91c0ac6af45573 Mon Sep 17 00:00:00 2001 From: Benjamin Freeman Date: Fri, 11 Nov 2022 01:22:03 +0100 Subject: [PATCH 1/5] Add M5Stack PoESP32 Unit ethernet configuration (#2420) --- components/ethernet.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/components/ethernet.rst b/components/ethernet.rst index 8b257a760..aa62ff8cd 100644 --- a/components/ethernet.rst +++ b/components/ethernet.rst @@ -181,6 +181,21 @@ Configuration for ESP32-Ethernet-Kit board clk_mode: GPIO0_IN phy_addr: 1 power_pin: GPIO5 + + +Configuration for M5Stack PoESP32 Unit +-------------------------------------- + +.. code-block:: yaml + + ethernet: + type: IP101 + mdc_pin: GPIO23 + mdio_pin: GPIO18 + clk_mode: GPIO0_IN + phy_addr: 1 + power_pin: GPIO5 + See Also -------- From 5e145b5996ce1918783cec0a02f721e56dcd9ecd Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Fri, 11 Nov 2022 16:15:27 +1300 Subject: [PATCH 2/5] Fix github path in components json (#2423) --- components.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components.py b/components.py index b68655c56..de0b344d2 100644 --- a/components.py +++ b/components.py @@ -26,7 +26,7 @@ def add_component_details(app, pagename, templatename, context, doctree): page_data = { "title": context["title"], "url": context["pageurl"], - "path": context["pagename"], + "path": f"components/{component_name}", } if os.path.exists(os.path.join(app.builder.srcdir, "images", component_name + ".png")): page_data["image"] = app.builder.config.html_baseurl + "/_images/" + component_name + ".png" From e5c1cd48d14a81b00a743e80f5a954ad5d6248b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benno=20P=C3=BCtz?= Date: Fri, 11 Nov 2022 06:32:46 +0100 Subject: [PATCH 3/5] removed superfluous 'to' in power_supply.rst (#2287) --- components/power_supply.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/power_supply.rst b/components/power_supply.rst index b08311ee5..38e714e42 100644 --- a/components/power_supply.rst +++ b/components/power_supply.rst @@ -30,7 +30,7 @@ Configuration variables: power supply so that it can be used by the outputs. - **pin** (**Required**, :ref:`Pin Schema `): The GPIO pin to control the power supply on. -- **enable_time** (*Optional*, :ref:`config-time`): The time to +- **enable_time** (*Optional*, :ref:`config-time`): The time that the power supply needs for startup. The output component will wait for this period of time after turning on the PSU and before switching the output on. Defaults to ``20ms``. From 2a699ca74e0e7b7d35c03de8ba708df4009d264a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benno=20P=C3=BCtz?= Date: Fri, 11 Nov 2022 23:44:22 +0100 Subject: [PATCH 4/5] Typo In line 10: Either "a button" or just "buttons" - in this context I'd prefer the former --- components/button/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From e7ba602c29321c7ace8cc3bdc7f28d7a52e5d658 Mon Sep 17 00:00:00 2001 From: gb53smith Date: Sat, 12 Nov 2022 22:39:00 -0800 Subject: [PATCH 5/5] Remove pointer reference to JsonObject calls. (#2294) --- custom/custom_component.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; }); }