From 260cfab842b2618a174cf8e57c679bbb32845016 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 5 Sep 2024 20:30:40 -0400 Subject: [PATCH] Restyle --- src/python_testing/mdns_discovery/mdns_discovery.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/python_testing/mdns_discovery/mdns_discovery.py b/src/python_testing/mdns_discovery/mdns_discovery.py index 4e935ba899510c..f8c9d46d70760a 100644 --- a/src/python_testing/mdns_discovery/mdns_discovery.py +++ b/src/python_testing/mdns_discovery/mdns_discovery.py @@ -17,9 +17,8 @@ import asyncio -import logging import json - +import logging from dataclasses import asdict, dataclass from enum import Enum from typing import Dict, List, Optional @@ -29,6 +28,7 @@ logger = logging.getLogger(__name__) + @dataclass class MdnsServiceInfo: # The unique name of the mDNS service. @@ -82,7 +82,7 @@ class MdnsDiscovery: DISCOVERY_TIMEOUT_SEC = 15 - def __init__(self, verbose_logging:bool=False): + def __init__(self, verbose_logging: bool = False): """ Initializes the MdnsDiscovery instance. @@ -378,7 +378,6 @@ async def _get_service(self, service_type: MdnsServiceType, else: return None - def _log_output(self) -> str: """ Converts the discovered services to a JSON string and log it.