Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.14
rev: v0.15.4
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
4 changes: 2 additions & 2 deletions src/androidtvremote2/androidtv_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
from __future__ import annotations

import asyncio
import os
import ssl
from typing import TYPE_CHECKING
from urllib.parse import urlparse

import aiofiles
from aiofiles import os as aos
from cryptography import x509

from .certificate_generator import generate_selfsigned_cert
Expand Down Expand Up @@ -189,7 +189,7 @@ async def async_generate_cert_if_missing(self) -> bool:

:returns: True if a new certificate was generated.
"""
if os.path.isfile(self._certfile) and os.path.isfile(self._keyfile):
if await aos.path.isfile(self._certfile) and await aos.path.isfile(self._keyfile):
return False
cert_pem, key_pem = generate_selfsigned_cert(self._client_name)
async with aiofiles.open(self._certfile, "w", encoding="utf-8") as out:
Expand Down
2 changes: 1 addition & 1 deletion src/demo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ruff: noqa: T201, PLR0912, PLR0915
# ruff: noqa: T201, PLR0912, PLR0915, ASYNC240, ASYNC250
"""Demo usage of AndroidTVRemote."""

import argparse
Expand Down
Loading