diff options
Diffstat (limited to 'scripts/esphomeapi.py')
-rw-r--r-- | scripts/esphomeapi.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/esphomeapi.py b/scripts/esphomeapi.py index 390fbd5..40594f1 100644 --- a/scripts/esphomeapi.py +++ b/scripts/esphomeapi.py @@ -4,7 +4,6 @@ import argparse import asyncio import logging -import os import sys import common @@ -14,7 +13,7 @@ import zeroconf from aioesphomeapi import APIClient, APIConnectionError, ReconnectLogic, SensorState sleepsec = 60 -noise_psk = os.environ["el_esphome_api_psk"] +noise_psk = common.env("el_esphome_api_psk") async def main(args): |