Fix aioesphomeapi API logger with explicit api.port in the YAML. (#2310)

This commit is contained in:
Maurice Makaay 2021-09-15 08:48:27 +02:00 committed by GitHub
parent b276ac0588
commit 19014331d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ _LOGGER = logging.getLogger(__name__)
async def async_run_logs(config, address): async def async_run_logs(config, address):
conf = config["api"] conf = config["api"]
port: int = conf[CONF_PORT] port: int = int(conf[CONF_PORT])
password: str = conf[CONF_PASSWORD] password: str = conf[CONF_PASSWORD]
noise_psk: Optional[str] = None noise_psk: Optional[str] = None
if CONF_ENCRYPTION in conf: if CONF_ENCRYPTION in conf: