diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index beeab31..2f7855c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: - --max-complexity=18 - --select=B,C,E,F,W,T4,B9 - repo: https://github.com/ambv/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black language_version: python3 @@ -53,7 +53,7 @@ repos: - --quiet-level=2 exclude_types: [csv, json] - repo: https://github.com/PyCQA/bandit - rev: 1.7.6 + rev: 1.7.7 hooks: - id: bandit args: diff --git a/aiowebostv/__init__.py b/aiowebostv/__init__.py index 8ebc28e..3a0e766 100644 --- a/aiowebostv/__init__.py +++ b/aiowebostv/__init__.py @@ -1,4 +1,5 @@ """Provide a package for controlling LG webOS based TVs.""" + from .exceptions import WebOsTvCommandError, WebOsTvPairError from .webos_client import WebOsClient diff --git a/aiowebostv/buttons.py b/aiowebostv/buttons.py index a5363ea..f194a19 100644 --- a/aiowebostv/buttons.py +++ b/aiowebostv/buttons.py @@ -1,4 +1,5 @@ """Known webOS control buttons.""" + BUTTONS = ( "LEFT", "RIGHT", diff --git a/aiowebostv/endpoints.py b/aiowebostv/endpoints.py index 454cd89..fc9a425 100644 --- a/aiowebostv/endpoints.py +++ b/aiowebostv/endpoints.py @@ -1,4 +1,5 @@ """webOS TV public SSAP API endpoints.""" + GET_SERVICES = "api/getServiceList" SET_MUTE = "audio/setMute" GET_AUDIO_STATUS = "audio/getStatus" diff --git a/aiowebostv/handshake.py b/aiowebostv/handshake.py index d8bf4b4..863f0ce 100644 --- a/aiowebostv/handshake.py +++ b/aiowebostv/handshake.py @@ -1,4 +1,5 @@ """webOS registration payload.""" + SIGNATURE = ( "eyJhbGdvcml0aG0iOiJSU0EtU0hBMjU2Iiwia2V5SWQiOiJ0ZXN0LXNpZ25pbm" "ctY2VydCIsInNpZ25hdHVyZVZlcnNpb24iOjF9.hrVRgjCwXVvE2OOSpDZ58hR" diff --git a/aiowebostv/webos_client.py b/aiowebostv/webos_client.py index 2f7336d..c3092b9 100644 --- a/aiowebostv/webos_client.py +++ b/aiowebostv/webos_client.py @@ -1,4 +1,5 @@ """Provide a websockets client for controlling LG webOS based TVs.""" + import asyncio import base64 import copy diff --git a/examples/basic.py b/examples/basic.py index 60e1965..7e2cd3b 100644 --- a/examples/basic.py +++ b/examples/basic.py @@ -1,4 +1,5 @@ """Basic webOS client example.""" + import asyncio from aiowebostv import WebOsClient diff --git a/examples/reconnect.py b/examples/reconnect.py index 1c8609f..adab272 100644 --- a/examples/reconnect.py +++ b/examples/reconnect.py @@ -1,4 +1,5 @@ """Silent connect/reconnect example.""" + import asyncio from contextlib import suppress from datetime import datetime diff --git a/examples/state_updates.py b/examples/state_updates.py index 001f0bf..9043b00 100644 --- a/examples/state_updates.py +++ b/examples/state_updates.py @@ -1,4 +1,5 @@ """Subscribed state updates example.""" + import asyncio from aiowebostv import WebOsClient diff --git a/setup.py b/setup.py index 7316a7c..a211d35 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ """Setup module for aiowebostv.""" + from pathlib import Path from setuptools import setup