1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-19 02:03:48 +01:00

Update esphome/components/wifi_info/text_sensor.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
J. Nick Koston
2025-10-12 20:46:36 -10:00
committed by GitHub
parent d191d1e99a
commit dd09897a1d

View File

@@ -78,8 +78,8 @@ async def to_code(config):
await setup_conf(config, CONF_BSSID)
await setup_conf(config, CONF_MAC_ADDRESS)
if CONF_SCAN_RESULTS in config:
await setup_conf(config, CONF_SCAN_RESULTS)
wifi.request_wifi_scan_results()
await setup_conf(config, CONF_SCAN_RESULTS)
await setup_conf(config, CONF_DNS_ADDRESS)
if conf := config.get(CONF_IP_ADDRESS):
wifi_info = await text_sensor.new_text_sensor(config[CONF_IP_ADDRESS])