Skip to content

Commit 591cf11

Browse files
authored
Merge pull request #1577 from robbrad/aug_25_release
Aug 25 release
2 parents 41f6f3d + 6278b99 commit 591cf11

File tree

13 files changed

+66
-41
lines changed

13 files changed

+66
-41
lines changed

.github/workflows/behave_pull_request.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: Setup Environment
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v5
1818

1919
- name: Install Poetry
2020
run: pipx install poetry==1.8.4
@@ -61,7 +61,7 @@ jobs:
6161
python-version: [3.12]
6262
poetry-version: [1.8.4]
6363
steps:
64-
- uses: actions/checkout@v4
64+
- uses: actions/checkout@v5
6565

6666
- uses: actions/setup-python@v5
6767
with:
@@ -92,7 +92,7 @@ jobs:
9292
python-version: [3.12]
9393
poetry-version: [1.8.4]
9494
steps:
95-
- uses: actions/checkout@v4
95+
- uses: actions/checkout@v5
9696

9797
- uses: actions/setup-python@v5
9898
with:
@@ -125,7 +125,7 @@ jobs:
125125
ports:
126126
- 4444:4444
127127
steps:
128-
- uses: actions/checkout@v4
128+
- uses: actions/checkout@v5
129129

130130
- uses: actions/setup-python@v5
131131
with:

.github/workflows/behave_schedule.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: Setup Environment
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
1414

1515
- name: Install Poetry
1616
run: pipx install poetry==1.8.4
@@ -43,7 +43,7 @@ jobs:
4343
python-version: [3.12]
4444
poetry-version: [1.8.4]
4545
steps:
46-
- uses: actions/checkout@v4
46+
- uses: actions/checkout@v5
4747

4848
- uses: actions/setup-python@v5
4949
with:
@@ -74,7 +74,7 @@ jobs:
7474
python-version: [3.12]
7575
poetry-version: [1.8.4]
7676
steps:
77-
- uses: actions/checkout@v4
77+
- uses: actions/checkout@v5
7878

7979
- uses: actions/setup-python@v5
8080
with:
@@ -107,7 +107,7 @@ jobs:
107107
ports:
108108
- 4444:4444
109109
steps:
110-
- uses: actions/checkout@v4
110+
- uses: actions/checkout@v5
111111

112112
- uses: actions/setup-python@v5
113113
with:

.github/workflows/bump.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
id-token: write
2020
contents: write
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
2323
with:
2424
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
2525
fetch-depth: 0

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747

4848
steps:
4949
- name: Checkout repository
50-
uses: actions/checkout@v4
50+
uses: actions/checkout@v5
5151

5252
# Initializes the CodeQL tools for scanning.
5353
- name: Initialize CodeQL

.github/workflows/docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
build:
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v5
2626
- name: Publish to Registry
2727
uses: elgohr/Publish-Docker-Github-Action@v5
2828
with:

.github/workflows/hacs_validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: HassFest Validation
1212
runs-on: "ubuntu-latest"
1313
steps:
14-
- uses: "actions/checkout@v4"
14+
- uses: "actions/checkout@v5"
1515
- uses: home-assistant/actions/hassfest@master
1616
hacs:
1717
name: HACS Action Validation

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: Lint Commit Messages
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v5
2020
with:
2121
fetch-depth: 0
2222
- run: "echo \"export default {extends: ['@commitlint/config-conventional'], rules: { 'subject-case': [0], 'body-max-line-length': [0], 'footer-max-line-length': [0] }}\" > commitlint.config.mjs"

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
id-token: write
1414
contents: write
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717
- uses: actions/setup-python@v5
1818
with:
1919
python-version: '3.12'

.github/workflows/wiki.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
environment: wiki
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v5
2626
- uses: actions/setup-python@v5
2727
with:
2828
python-version: '3.12'

custom_components/uk_bin_collection/__init__.py

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,28 @@ def build_ukbcd_args(config_data: dict) -> list:
283283
"""Build the argument list for UKBinCollectionApp from config data."""
284284
council = config_data.get("original_parser") or config_data.get("council", "")
285285
url = config_data.get("url", "")
286-
287286
args = [council, url]
288287

288+
# Per-key formatters: return a list of CLI args for that key
289+
def _format_headless(v):
290+
return ["--headless"] if v else ["--not-headless"]
291+
292+
def _format_web_driver(v):
293+
return [f"--web_driver={v.rstrip('/')}"] if v is not None else []
294+
295+
formatters = {
296+
"headless": _format_headless,
297+
"web_driver": _format_web_driver,
298+
}
299+
289300
for key, value in config_data.items():
290301
if key in EXCLUDED_ARG_KEYS:
291302
continue
292-
if key == "web_driver" and value is not None:
293-
value = value.rstrip("/")
294-
args.append(f"--{key}={value}")
303+
fmt = formatters.get(key)
304+
if fmt:
305+
args.extend(fmt(value))
306+
else:
307+
args.append(f"--{key}={value}")
295308

296309
return args
297310

0 commit comments

Comments
 (0)