Skip to content

Commit 256ea13

Browse files
authored
Make sending a little faster (#9)
1 parent face2b3 commit 256ea13

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

custom_components/gicisky/gicisky_ble/writer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ async def stop_notify(self) -> None:
115115
await self.client.stop_notify(self.cmd_uuid)
116116

117117
@disconnect_on_missing_services
118-
async def write(self, uuid: str, data: bytes) -> None:
118+
async def write(self, uuid: str, data: bytes, response = False) -> None:
119119
_LOGGER.debug("Write UUID=%s data=%s", uuid, len(data))
120120
chunk = len(data)
121121
for i in range(0, len(data), chunk):
122-
await self.client.write_gatt_char(uuid, data[i : i + chunk])
122+
await self.client.write_gatt_char(uuid, data[i : i + chunk], response)
123123
#await sleep(0.05)
124124

125125
def _notification_handler(self, _: Any, data: bytearray) -> None:

custom_components/gicisky/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"documentation": "https://github.com/eigger/hass-gicisky",
1414
"issue_tracker": "https://github.com/eigger/hass-gicisky/issues",
1515
"iot_class": "local_push",
16-
"version": "1.3.1",
16+
"version": "1.3.2",
1717
"requirements": [
1818
"qrcode[pil]==7.4.2",
1919
"python-barcode==0.15.1"

0 commit comments

Comments
 (0)