mirror of
https://github.com/esphome/esphome.git
synced 2026-09-15 09:08:41 +00:00
Update text_sensor.py
Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
This commit is contained in:
co-authored by
Keith Burzinski
parent
c7d485e8bd
commit
a50c744714
@@ -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