From 476f1b701b1b7d4b584994ec3ebbb0af7276d883 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Fri, 28 Feb 2025 09:12:21 +1300 Subject: [PATCH] [zeroconf] Ruff formatting (#8338) --- esphome/zeroconf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/zeroconf.py b/esphome/zeroconf.py index 0e2c431d4b..b235f06786 100644 --- a/esphome/zeroconf.py +++ b/esphome/zeroconf.py @@ -166,7 +166,7 @@ class DashboardImportDiscovery: class EsphomeZeroconf(Zeroconf): def resolve_host(self, host: str, timeout: float = 3.0) -> list[str] | None: """Resolve a host name to an IP address.""" - info = AddressResolver(f'{host.partition(".")[0]}.local.') + info = AddressResolver(f"{host.partition('.')[0]}.local.") if ( info.load_from_cache(self) or (timeout and info.request(self, timeout * 1000)) @@ -180,7 +180,7 @@ class AsyncEsphomeZeroconf(AsyncZeroconf): self, host: str, timeout: float = 3.0 ) -> list[str] | None: """Resolve a host name to an IP address.""" - info = AddressResolver(f'{host.partition(".")[0]}.local.') + info = AddressResolver(f"{host.partition('.')[0]}.local.") if ( info.load_from_cache(self.zeroconf) or (timeout and await info.async_request(self.zeroconf, timeout * 1000))