We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86709e6 commit 15f2fe5Copy full SHA for 15f2fe5
custom_components/uk_bin_collection/__init__.py
@@ -291,7 +291,15 @@ def build_ukbcd_args(config_data: dict) -> list:
291
continue
292
if key == "web_driver" and value is not None:
293
value = value.rstrip("/")
294
- args.append(f"--{key}={value}")
+ args.append(f"--{key}={value}")
295
+ elif key == "headless":
296
+ # Handle boolean headless argument correctly
297
+ if value:
298
+ args.append("--headless")
299
+ else:
300
+ args.append("--not-headless")
301
302
303
304
return args
305
custom_components/uk_bin_collection/const.py
@@ -31,7 +31,6 @@
31
"council",
32
"url",
33
"skip_get_url",
34
- "headless",
35
"local_browser",
36
"timeout",
37
"icon_color_mapping",
0 commit comments