mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2025-02-16 01:41:21 +01:00
lint fixes
This commit is contained in:
parent
3f22d6ee5e
commit
7238f56473
@ -1,6 +1,8 @@
|
||||
import asyncio
|
||||
import async_timeout
|
||||
import logging
|
||||
|
||||
import async_timeout
|
||||
|
||||
from typing import (
|
||||
Any,
|
||||
Awaitable,
|
||||
@ -480,8 +482,8 @@ class APIClient:
|
||||
read_response = BluetoothGATTRead.from_pb(resp)
|
||||
if (
|
||||
read_response.address == address
|
||||
and (service == "" or read_response.service == service)
|
||||
and read_response.characteristic == characteristic
|
||||
and (service == "" or read_response.service_uuid == service)
|
||||
and read_response.characteristic_uuid == characteristic
|
||||
):
|
||||
return bytearray(read_response.data)
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user