From a50c74471438ddfa876e0f72c248334275d85227 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 24 Nov 2025 17:50:36 -0600 Subject: [PATCH] Update text_sensor.py Co-authored-by: Keith Burzinski --- esphome/components/wifi_info/text_sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/wifi_info/text_sensor.py b/esphome/components/wifi_info/text_sensor.py index 8097767d3d..0feee3d4a9 100644 --- a/esphome/components/wifi_info/text_sensor.py +++ b/esphome/components/wifi_info/text_sensor.py @@ -80,7 +80,7 @@ async def setup_conf(config, key): async def to_code(config): # Request WiFi callbacks for any sensor that needs them - if _NETWORK_INFO_KEYS & config.keys(): + if _NETWORK_INFO_KEYS.intersection(config): wifi.request_wifi_callbacks() await setup_conf(config, CONF_SSID)