[wifi_info] Fix compilation error when using only mac_address sensor, add tests (#12222)

This commit is contained in:
Keith Burzinski
2025-12-01 02:48:47 -06:00
committed by GitHub
parent 161a18b326
commit dbc16ce468
7 changed files with 27 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
wifi:
ssid: MySSID
password: password1
text_sensor:
- platform: wifi_info
mac_address:
name: MAC Address

View File

@@ -13,6 +13,6 @@ text_sensor:
bssid:
name: BSSID
mac_address:
name: Mac Address
name: MAC Address
dns_address:
name: DNS ADdress

View File

@@ -0,0 +1,4 @@
packages:
i2c: !include ../../test_build_components/common/i2c/esp32-idf.yaml
<<: !include common-mac.yaml

View File

@@ -0,0 +1,4 @@
packages:
i2c: !include ../../test_build_components/common/i2c/esp8266-ard.yaml
<<: !include common-mac.yaml

View File

@@ -0,0 +1,4 @@
packages:
i2c: !include ../../test_build_components/common/i2c/rp2040-ard.yaml
<<: !include common-mac.yaml