mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-11-24 12:25:20 +01:00
linting etc
This commit is contained in:
parent
46de2dd49d
commit
b61110c154
@ -1,3 +1,4 @@
|
|||||||
|
# pylint: disable=too-many-lines
|
||||||
import asyncio
|
import asyncio
|
||||||
import logging
|
import logging
|
||||||
from typing import (
|
from typing import (
|
||||||
@ -22,8 +23,8 @@ from .api_pb2 import ( # type: ignore
|
|||||||
BluetoothConnectionsFreeResponse,
|
BluetoothConnectionsFreeResponse,
|
||||||
BluetoothDeviceConnectionResponse,
|
BluetoothDeviceConnectionResponse,
|
||||||
BluetoothDeviceRequest,
|
BluetoothDeviceRequest,
|
||||||
BluetoothGATTGetServicesRequest,
|
|
||||||
BluetoothGATTGetServicesDoneResponse,
|
BluetoothGATTGetServicesDoneResponse,
|
||||||
|
BluetoothGATTGetServicesRequest,
|
||||||
BluetoothGATTGetServicesResponse,
|
BluetoothGATTGetServicesResponse,
|
||||||
BluetoothGATTNotifyDataResponse,
|
BluetoothGATTNotifyDataResponse,
|
||||||
BluetoothGATTNotifyRequest,
|
BluetoothGATTNotifyRequest,
|
||||||
@ -497,7 +498,7 @@ class APIClient:
|
|||||||
async def bluetooth_gatt_get_services(self, address: int) -> BluetoothGATTServices:
|
async def bluetooth_gatt_get_services(self, address: int) -> BluetoothGATTServices:
|
||||||
self._check_authenticated()
|
self._check_authenticated()
|
||||||
|
|
||||||
def do_append(msg: message.Message) -> None:
|
def do_append(msg: message.Message) -> bool:
|
||||||
return isinstance(msg, BluetoothGATTGetServicesResponse)
|
return isinstance(msg, BluetoothGATTGetServicesResponse)
|
||||||
|
|
||||||
def do_stop(msg: message.Message) -> bool:
|
def do_stop(msg: message.Message) -> bool:
|
||||||
@ -612,7 +613,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],
|
||||||
) -> Coroutine[Any, Any, None]:
|
) -> Callable[[], Coroutine[Any, Any, None]]:
|
||||||
self._check_authenticated()
|
self._check_authenticated()
|
||||||
|
|
||||||
def on_msg(msg: message.Message) -> None:
|
def on_msg(msg: message.Message) -> None:
|
||||||
|
@ -3,8 +3,8 @@ from .api_pb2 import ( # type: ignore
|
|||||||
BluetoothConnectionsFreeResponse,
|
BluetoothConnectionsFreeResponse,
|
||||||
BluetoothDeviceConnectionResponse,
|
BluetoothDeviceConnectionResponse,
|
||||||
BluetoothDeviceRequest,
|
BluetoothDeviceRequest,
|
||||||
BluetoothGATTGetServicesRequest,
|
|
||||||
BluetoothGATTGetServicesDoneResponse,
|
BluetoothGATTGetServicesDoneResponse,
|
||||||
|
BluetoothGATTGetServicesRequest,
|
||||||
BluetoothGATTGetServicesResponse,
|
BluetoothGATTGetServicesResponse,
|
||||||
BluetoothGATTNotifyDataResponse,
|
BluetoothGATTNotifyDataResponse,
|
||||||
BluetoothGATTNotifyRequest,
|
BluetoothGATTNotifyRequest,
|
||||||
|
Loading…
Reference in New Issue
Block a user