mirror of
https://github.com/esphome/esphome.git
synced 2025-10-21 03:03:50 +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:
@@ -78,8 +78,8 @@ async def to_code(config):
|
|||||||
await setup_conf(config, CONF_BSSID)
|
await setup_conf(config, CONF_BSSID)
|
||||||
await setup_conf(config, CONF_MAC_ADDRESS)
|
await setup_conf(config, CONF_MAC_ADDRESS)
|
||||||
if CONF_SCAN_RESULTS in config:
|
if CONF_SCAN_RESULTS in config:
|
||||||
|
await setup_conf(config, CONF_SCAN_RESULTS)
|
||||||
wifi.request_wifi_scan_results()
|
wifi.request_wifi_scan_results()
|
||||||
await setup_conf(config, CONF_SCAN_RESULTS)
|
|
||||||
await setup_conf(config, CONF_DNS_ADDRESS)
|
await setup_conf(config, CONF_DNS_ADDRESS)
|
||||||
if conf := config.get(CONF_IP_ADDRESS):
|
if conf := config.get(CONF_IP_ADDRESS):
|
||||||
wifi_info = await text_sensor.new_text_sensor(config[CONF_IP_ADDRESS])
|
wifi_info = await text_sensor.new_text_sensor(config[CONF_IP_ADDRESS])
|
||||||
|
Reference in New Issue
Block a user