Skip to content

Commit

Permalink
chore: format files using new settings
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Kaechele <felix@kaechele.ca>
  • Loading branch information
kaechele committed Dec 28, 2023
1 parent 15f2298 commit 135405c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/bonaparte/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

from bleak.exc import BleakDBusError, BleakError
from bleak_retry_connector import (
BLEAK_RETRY_EXCEPTIONS as BLEAK_EXCEPTIONS,
BleakClientWithServiceCache,
BleakNotFoundError,
establish_connection,
retry_bluetooth_connection_error,
)
from bleak_retry_connector import BLEAK_RETRY_EXCEPTIONS as BLEAK_EXCEPTIONS

from .const import (
FOOTER,
Expand Down Expand Up @@ -51,7 +51,7 @@


def raise_if_not_connected(
func: Callable[Concatenate[EfireDevice, P], Awaitable[T]]
func: Callable[Concatenate[EfireDevice, P], Awaitable[T]],
) -> Callable[Concatenate[EfireDevice, P], Awaitable[T]]:
"""Define a wrapper to authenticate if we aren't yet."""

Expand Down
5 changes: 2 additions & 3 deletions src/bonaparte/fireplace.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
"""Representation of a Fireplace."""
from __future__ import annotations

from dataclasses import dataclass
from dataclasses import fields as dc_fields
from dataclasses import dataclass, fields as dc_fields
import logging
from typing import TYPE_CHECKING, Concatenate, ParamSpec, TypeVar

Expand Down Expand Up @@ -43,7 +42,7 @@


def needs_auth(
func: Callable[Concatenate[Fireplace, P], Awaitable[T]]
func: Callable[Concatenate[Fireplace, P], Awaitable[T]],
) -> Callable[Concatenate[Fireplace, P], Awaitable[T]]:
"""Define a wrapper to authenticate if we aren't yet authenticated."""

Expand Down
3 changes: 1 addition & 2 deletions tests/test_misc.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
"""Miscellaneous tests."""
from bleak.backends.device import BLEDevice
import pytest

from bonaparte import Fireplace, FireplaceFeatures
import pytest

fp = Fireplace(BLEDevice("aa:bb:cc:dd:ee:ff", "Fireplace", details=None, rssi=0))

Expand Down

0 comments on commit 135405c

Please sign in to comment.