From 19b6ec9d5a9021a1b1cb518e6f13fbd871f07881 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 11 Nov 2023 16:20:04 -0600 Subject: [PATCH] lint --- esphome/components/api/client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/esphome/components/api/client.py b/esphome/components/api/client.py index 0d86f3cea5..59f8cfd28c 100644 --- a/esphome/components/api/client.py +++ b/esphome/components/api/client.py @@ -1,7 +1,9 @@ +from __future__ import annotations + import asyncio import logging from datetime import datetime -from typing import Any, Optional +from typing import Any from aioesphomeapi import APIClient from aioesphomeapi.api_pb2 import SubscribeLogsResponse @@ -20,7 +22,7 @@ async def async_run_logs(config, address): conf = config["api"] port: int = int(conf[CONF_PORT]) password: str = conf[CONF_PASSWORD] - noise_psk: Optional[str] = None + noise_psk: str | None = None if CONF_ENCRYPTION in conf: noise_psk = conf[CONF_ENCRYPTION][CONF_KEY] _LOGGER.info("Starting log output from %s using esphome API", address)