Merge branch 'main' into feature/type_8

This commit is contained in:
patman15
2024-12-20 21:16:37 +01:00
7 changed files with 97 additions and 12 deletions

19
.github/workflows/_validate.bak vendored Normal file
View File

@@ -0,0 +1,19 @@
name: Validate with HACS
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 5 * * 6'
jobs:
validate-hacs:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- name: HACS validation
uses: "hacs/action@main"
with:
category: "integration"

16
.github/workflows/hassfest.yaml vendored Normal file
View File

@@ -0,0 +1,16 @@
name: Validate with hassfest
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 6 * * 6'
jobs:
validate-hassfest:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- name: HA validation
uses: "home-assistant/actions/hassfest@master"

28
.github/workflows/lint.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: "Lint the code"
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 5 * * 6'
jobs:
ruff:
name: "Ruff"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout the repository"
uses: "actions/checkout@main"
- name: "Set up Python"
uses: actions/setup-python@main
with:
python-version: "3.12"
cache: "pip"
- name: "Install requirements"
run: python3 -m pip install -r requirements.txt
- name: "Run Ruff"
run: python3 -m ruff check .

22
.github/workflows/stale.yaml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: 'Close stale issues and PR'
on:
schedule:
- cron: '01 2 * * *'
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
stale-issue-message: 'This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 8 days.'
stale-pr-message: 'This PR is stale because it has been open 45 days with no activity.'
close-issue-message: 'This issue was closed because it has been stalled for 15 days with no activity.'
exempt-issue-labels: 'bug'
exempt-all-assignees: true
days-before-stale: 45
days-before-close: 15
days-before-pr-close: -1

View File

@@ -16,5 +16,5 @@
"issue_tracker": "https://github.com/patman15/hdpv_ble/issues", "issue_tracker": "https://github.com/patman15/hdpv_ble/issues",
"loggers": ["hunterdouglas_powerview_ble"], "loggers": ["hunterdouglas_powerview_ble"],
"requirements": ["cryptography>=43.0.0"], "requirements": ["cryptography>=43.0.0"],
"version": 0.21 "version": "0.21"
} }

View File

@@ -1,4 +1,4 @@
homeassistant==2024.8.0 homeassistant==2024.11.0
pip>=21.3.1 pip>=21.3.1
ruff==0.6.8 ruff==0.6.8

View File

@@ -1,13 +1,13 @@
pip>=21.3.1 -r requirements.txt
homeassistant==2024.6.0
wheel wheel
home-assistant-bluetooth home-assistant-bluetooth
habluetooth>=2.4.0 habluetooth>=3.6.0
bluetooth-adapters bluetooth-adapters
pytest>=8.0.2 pytest>=8.3.3
pytest-cov>=4.0.0 pytest-cov>=5.0.0
pytest-socket>=0.5.0 pytest-socket>=0.7.0
pytest-asyncio pytest-asyncio>=0.24.0
sqlalchemy sqlalchemy
freezegun freezegun
requests-mock requests-mock
@@ -16,10 +16,10 @@ aiohttp
aiohttp_cors aiohttp_cors
aiohttp-fast-url-dispatcher aiohttp-fast-url-dispatcher
aiohttp-zlib-ng aiohttp-zlib-ng
bleak>=0.19.0 bleak>=0.22.3
bleak-retry-connector>=3.3.0 bleak-retry-connector>=3.6.0
bluetooth-data-tools bluetooth-data-tools
pyserial-asyncio pyserial-asyncio
pyudev pyudev
pytest-homeassistant-custom-component==0.13.132 pytest-homeassistant-custom-component==0.13.181