forked from hbldh/bleak
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run black after updating from v22 to v24
- Loading branch information
Showing
10 changed files
with
30 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
See <https://www.bluetooth.com/specifications/assigned-numbers/>. | ||
""" | ||
|
||
|
||
from enum import IntEnum | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
Created on 2019-06-28 by kevincar <[email protected]> | ||
""" | ||
|
||
from enum import Enum | ||
from typing import Dict, List, Optional, Tuple, Union | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
Created on 2019-06-26 by kevincar <[email protected]> | ||
""" | ||
|
||
import asyncio | ||
import logging | ||
import sys | ||
|
@@ -325,9 +326,11 @@ async def write_gatt_char( | |
await self._delegate.write_characteristic( | ||
characteristic.obj, | ||
value, | ||
CBCharacteristicWriteWithResponse | ||
if response | ||
else CBCharacteristicWriteWithoutResponse, | ||
( | ||
CBCharacteristicWriteWithResponse | ||
if response | ||
else CBCharacteristicWriteWithoutResponse | ||
), | ||
) | ||
logger.debug(f"Write Characteristic {characteristic.uuid} : {data}") | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
Created on 2019-06-28 by kevincar <[email protected]> | ||
""" | ||
|
||
from CoreBluetooth import CBDescriptor | ||
|
||
from ..corebluetooth.utils import cb_uuid_to_str | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
Created on 2021-02-25 by hbldh <[email protected]> | ||
""" | ||
|
||
import argparse | ||
import time | ||
import asyncio | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
Created on 2023-07-07 by bojanpotocnik <[email protected]> | ||
""" | ||
|
||
import asyncio | ||
|
||
from bleak import BleakScanner | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters