Skip to content

Commit

Permalink
Merge pull request #53 from mikeGEINE/master
Browse files Browse the repository at this point in the history
Fixed TimeoutError excess
  • Loading branch information
ClusterM authored Feb 3, 2024
2 parents 88443fd + 2dd8f64 commit a7154eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/skykettle/kettle_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ async def command(self, command, params=[]):
_LOGGER.debug(f"Writing command {command:02x}, data: [{' '.join([f'{c:02x}' for c in params])}]")
data = bytes([0x55, self._iter, command] + list(params) + [0xAA])
# _LOGGER.debug(f"Writing {data}")
self._last_data = None
await self._client.write_gatt_char(KettleConnection.UUID_TX, data)
timeout_time = monotonic() + KettleConnection.BLE_RECV_TIMEOUT
self._last_data = None
while True:
await asyncio.sleep(0.05)
if self._last_data:
Expand Down

0 comments on commit a7154eb

Please sign in to comment.