From 7960634c6ed6f0da170f479724fb1e8ba54767f2 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Sun, 7 Jul 2024 16:26:35 +0200 Subject: [PATCH] Fix blocking operation (#702) --- src/tailscale/tailscale.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/tailscale/tailscale.py b/src/tailscale/tailscale.py index b1790ac..305a52e 100644 --- a/src/tailscale/tailscale.py +++ b/src/tailscale/tailscale.py @@ -5,7 +5,6 @@ import asyncio import socket from dataclasses import dataclass -from importlib import metadata from typing import Any, Self from aiohttp import BasicAuth @@ -65,11 +64,9 @@ async def _request( API. """ - version = metadata.version(__package__) url = URL("https://api.tailscale.com/api/v2/").join(URL(uri)) headers = { - "User-Agent": f"PythonTailscale/{version}", "Accept": "application/json", }