mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-11-30 13:23:21 +01:00
Fix types
This commit is contained in:
parent
51e364cdb7
commit
b8ad4dd671
@ -404,7 +404,7 @@ class APIClient:
|
|||||||
|
|
||||||
async def subscribe_bluetooth_le_advertisements(
|
async def subscribe_bluetooth_le_advertisements(
|
||||||
self, on_bluetooth_le_advertisement: Callable[[BluetoothLEAdvertisement], None]
|
self, on_bluetooth_le_advertisement: Callable[[BluetoothLEAdvertisement], None]
|
||||||
) -> Callable([], None):
|
) -> Callable[[], None]:
|
||||||
self._check_authenticated()
|
self._check_authenticated()
|
||||||
|
|
||||||
def on_msg(msg: message.Message) -> None:
|
def on_msg(msg: message.Message) -> None:
|
||||||
@ -448,7 +448,7 @@ class APIClient:
|
|||||||
address: int,
|
address: int,
|
||||||
on_bluetooth_connection_state: Callable[[bool, int], None],
|
on_bluetooth_connection_state: Callable[[bool, int], None],
|
||||||
timeout: float = 10.0,
|
timeout: float = 10.0,
|
||||||
) -> Callable([], None):
|
) -> Callable[[], None]:
|
||||||
self._check_authenticated()
|
self._check_authenticated()
|
||||||
|
|
||||||
fut = asyncio.get_event_loop().create_future()
|
fut = asyncio.get_event_loop().create_future()
|
||||||
@ -601,7 +601,7 @@ class APIClient:
|
|||||||
address: int,
|
address: int,
|
||||||
handle: int,
|
handle: int,
|
||||||
on_bluetooth_gatt_notify: Callable[[int, bytearray], None],
|
on_bluetooth_gatt_notify: Callable[[int, bytearray], None],
|
||||||
) -> Callable([], None):
|
) -> Callable[[], None]:
|
||||||
self._check_authenticated()
|
self._check_authenticated()
|
||||||
|
|
||||||
def on_msg(msg: message.Message) -> None:
|
def on_msg(msg: message.Message) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user