bot comments

This commit is contained in:
J. Nick Koston
2026-04-05 10:00:45 -10:00
parent f070ef6d08
commit 47c5734793
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -450,8 +450,8 @@ def _final_validate_spi(config):
interface = get_spi_interface(index)
if interface == spi_host:
raise cv.Invalid(
f"this and an `spi` component are both using interface '{interface}'. "
f"To use {config[CONF_TYPE]}, you must change the `interface` on one of these."
f"The `ethernet` and `spi` components are both using interface '{interface}'. "
f"To use {config[CONF_TYPE]}, change the `interface` on either `ethernet:` or `spi:`."
)
@@ -12,4 +12,9 @@ ethernet:
gateway: 192.168.178.1
subnet: 255.255.255.0
domain: .local
mac_address: "02:AA:BB:CC:DD:01"
interface: spi2
on_connect:
- logger.log: "Ethernet connected!"
on_disconnect:
- logger.log: "Ethernet disconnected!"