Skip to content

Commit 36d4879

Browse files
committed
Set user agent
1 parent d00fe89 commit 36d4879

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pyoverkiz/client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,11 @@ def __init__(
156156
self.gateways: list[Gateway] = []
157157
self.event_listener_id: str | None = None
158158

159-
self.session = session if session else ClientSession()
159+
self.session = (
160+
session
161+
if session
162+
else ClientSession(headers={"User-Agent": "python-overkiz-api"})
163+
)
160164
self._ssl = verify_ssl
161165

162166
if self.server_config.type == APIType.LOCAL and verify_ssl:

0 commit comments

Comments
 (0)