Skip to content

Commit

Permalink
Restyled by autopep8
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and j-ororke committed Jan 24, 2025
1 parent b75d59e commit 634041a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python_testing/mdns_discovery/mdns_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def _get_instance_name(self, service_info: AsyncServiceInfo) -> str:
async def _get_service(self, service_type: MdnsServiceType,
log_output: bool,
discovery_timeout_sec: float,
expected_value: str = None,
expected_value: str = None,
) -> Optional[MdnsServiceInfo]:
"""
Asynchronously discovers a specific type of mDNS service within the network and returns its details.
Expand All @@ -519,7 +519,7 @@ async def _get_service(self, service_type: MdnsServiceType,
if service_type.value in self._discovered_services:
if expected_value is not None:
for service in self._discovered_services[service_type.value]:
if service.service_name == expected_value.replace("._MATTER._TCP.LOCAL.","._matter._tcp.local."):
if service.service_name == expected_value.replace("._MATTER._TCP.LOCAL.", "._matter._tcp.local."):
return service
else:
return self._discovered_services[service_type.value][0]
Expand Down

0 comments on commit 634041a

Please sign in to comment.