mirror of
https://github.com/esphome/esphome.git
synced 2026-09-01 02:26:01 +00:00
bot comments
This commit is contained in:
@@ -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!"
|
||||
|
||||
Reference in New Issue
Block a user