Skip to content

Commit

Permalink
feat: port base scanner from ha (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Dec 2, 2023
1 parent d5564e5 commit e01a57b
Show file tree
Hide file tree
Showing 9 changed files with 1,532 additions and 53 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,11 @@ jobs:
fail-fast: false
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
os:
- ubuntu-latest
- windows-latest
- macOS-latest
runs-on: ${{ matrix.os }}
steps:
Expand Down
1,079 changes: 1,037 additions & 42 deletions poetry.lock

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ packages = [
"Changelog" = "https://github.com/bluetooth-devices/habluetooth/blob/main/CHANGELOG.md"

[tool.poetry.dependencies]
python = "^3.8"
python = ">=3.10,<3.13"
bleak = ">=0.21.1"
bleak-retry-connector = ">=3.3.0"
bluetooth-data-tools = ">=1.16.0"
home-assistant-bluetooth = ">=1.10.4"
bluetooth-adapters = ">=0.16.1"

[tool.poetry.group.dev.dependencies]
pytest = "^7.0"
Expand Down
19 changes: 19 additions & 0 deletions src/habluetooth/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
__version__ = "0.0.1"

from .base_scanner import BaseHaRemoteScanner, BaseHaScanner
from .const import (
CONNECTABLE_FALLBACK_MAXIMUM_STALE_ADVERTISEMENT_SECONDS,
FALLBACK_MAXIMUM_STALE_ADVERTISEMENT_SECONDS,
SCANNER_WATCHDOG_INTERVAL,
SCANNER_WATCHDOG_TIMEOUT,
)
from .models import HaBluetoothConnector

__all__ = [
"BaseHaScanner",
"BaseHaRemoteScanner",
"HaBluetoothConnector",
"FALLBACK_MAXIMUM_STALE_ADVERTISEMENT_SECONDS",
"CONNECTABLE_FALLBACK_MAXIMUM_STALE_ADVERTISEMENT_SECONDS",
"SCANNER_WATCHDOG_TIMEOUT",
"SCANNER_WATCHDOG_INTERVAL",
]
Loading

0 comments on commit e01a57b

Please sign in to comment.