mirror of
https://github.com/esphome/esphome.git
synced 2026-02-28 01:44:20 -07:00
Update text_sensor.py
Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user