Skip to content

Commit 645b592

Browse files
authored
Initial version (#2)
* Initial version * Clean up logs * Remove useless type annotations * Rename package to improv_ble_client * Rename improv_ble_client.py to client.py * Address review comments * Improve subscribe_state_updates * Enable mypy * Tidy up future cancellation * Validate characteristics * Add CommandFailed base class * Export SERVICE_UUID * Fix export of SERVICE_UUID * Deduplicate tracking of tasks
1 parent 43fd600 commit 645b592

File tree

7 files changed

+919
-3
lines changed

7 files changed

+919
-3
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
- name: Lint with isort
3434
run: |
3535
isort improv_ble_client
36-
#- name: Lint with mypy
37-
# run: |
38-
# mypy improv_ble_client
36+
- name: Lint with mypy
37+
run: |
38+
mypy improv_ble_client
3939
- name: Lint with pylint
4040
run: |
4141
pylint improv_ble_client

improv_ble_client/__init__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""Improv via BLE client."""
2+
3+
from __future__ import annotations
4+
5+
from . import errors
6+
from .client import ImprovBLEClient, device_filter
7+
from .protocol import SERVICE_UUID, Error, State
8+
9+
__all__ = [
10+
"SERVICE_UUID",
11+
"Error",
12+
"State",
13+
"ImprovBLEClient",
14+
"device_filter",
15+
"errors",
16+
]

0 commit comments

Comments
 (0)