Update pre-commit-config [Py310] (#86415)
This commit is contained in:
parent
6397138589
commit
4f87c1f30f
3 changed files with 5 additions and 7 deletions
|
@ -1,8 +1,7 @@
|
|||
"""Tests for the Bluetooth integration."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Callable
|
||||
from typing import Union
|
||||
from unittest.mock import patch
|
||||
|
||||
import bleak
|
||||
|
@ -66,7 +65,7 @@ class FakeScanner(BaseHaRemoteScanner):
|
|||
class BaseFakeBleakClient:
|
||||
"""Base class for fake bleak clients."""
|
||||
|
||||
def __init__(self, address_or_ble_device: Union[BLEDevice, str], **kwargs):
|
||||
def __init__(self, address_or_ble_device: BLEDevice | str, **kwargs):
|
||||
"""Initialize the fake bleak client."""
|
||||
self._device_path = "/dev/test"
|
||||
self._device = address_or_ble_device
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue