Christopher Pruijsen
122c264747
Ask for the integration type when scaffolding any new integration ( #192250 )
2026-11-15 21:10:05 +01:00
Christopher Pruijsen
6c4ac862b6
Ask for categories when scaffolding a new integration ( #192230 )
2026-11-12 11:58:59 +01:00
epenet
1b043fe019
Use EntityStateAttribute in the significant_change scaffold ( #190933 )
2026-11-07 23:35:11 +01:00
Paulus Schoutsen
85327d202d
Extract hassfest into a package ( #187044 )
2026-10-28 09:02:36 +01:00
G Johansson and Claude Opus 5.5
5db6fe40c1
Return None from config entry method mocks in scaffold templates ( #187806 )
...
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-21 17:54:54 +03:00
Paulus Schoutsen and epenet
7f18b3eb6a
Remove compatibility re-exports for pytest-home-assistant ( #187271 )
...
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com >
2026-10-19 17:24:41 +02:00
Paulus Schoutsen
aff03b66d7
Extract shared helpers used by hassfest and Core scripts ( #186958 )
2026-10-17 13:48:20 +02:00
Franck Nijhof
673ab851ba
Update links to the new contributors website ( #186884 )
2026-10-16 19:33:02 +02:00
G Johansson and Claude Opus 5.5
7ca72c3912
Return None from config entry methods in scaffold templates ( #186270 )
...
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-13 22:35:14 +02:00
Franck Nijhof
743b1489e1
Use probatio directly in tests, scripts and pylint plugins ( #182113 )
2026-09-13 17:24:06 +02:00
Josef Zweck
f5f831df93
Centrally handle ImplementationUnavailableError ( #180253 )
2026-09-03 08:16:46 +02:00
Markus Tuominen
f58bc989a0
Remove redundant block_till_done from scaffold config flow tests ( #176607 )
2026-07-16 14:22:13 +02:00
Markus Tuominen
2416d13dc5
Use plain Exception for scaffold config flow errors ( #176597 )
2026-07-16 13:05:15 +02:00
Joost Lekkerkerker
7d08a7b898
Add new integration quality scale rules ( #174555 )
2026-06-24 08:53:46 +02:00
Joost Lekkerkerker and Ariel Ebersberger
49c045236c
Enable N806 ( #171388 )
...
Co-authored-by: Ariel Ebersberger <31776703+justanotherariel@users.noreply.github.com >
2026-05-26 23:23:39 +02:00
Franck Nijhof and Claude Opus 4.6
f0396aca8a
Fix line length violations in script/ ( #170759 )
...
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-05-17 10:30:02 -04:00
epenet
9b1977e02c
Remove import annotations from script ( #169548 )
2026-04-30 20:39:12 +02:00
Pierre Hauweele
7cf422361b
Make the scaffold script ask for the integration type ( #167725 )
2026-04-10 12:49:40 +02:00
epenet
267caf2365
Use APPLICATION_CREDENTIALS_DOMAIN constant in tests ( #162932 )
2026-02-13 15:47:38 +01:00
Josef Zweck
9a03005d87
Fix config flow abort for oauth integrations when no implementation exception ( #161631 )
2026-01-27 07:19:03 +01:00
AlCalzone
d5be76d7e6
Make integration scaffolding a bit more newbie-friendly ( #160837 )
2026-01-13 10:39:49 +01:00
Will Moss
0a480a26a3
Remove import of config_entry_oauth2_flow in scaffold in favor of direct imports ( #156302 )
2025-11-11 11:17:31 +01:00
Will Moss and Martin Hjelmare
9e3eb20a04
Fix account link no internet on startup ( #154579 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2025-11-05 15:23:20 +01:00
Steven Hartland
4ed4c2cc5c
Fix scaffolding generations ( #138820 )
2025-02-19 20:23:29 +01:00
Steven Hartland and Martin Hjelmare
1a4738b1d4
Fix scaffolding integration generation ( #138247 )
...
* fix(scaffold): integration generation
Fix script.scaffold integration generation which was failing due to
hassfest quality check.
Add the required `quality_scale` to the generated integration
manifest.json.
Use the new `--skip-plugins` flag to skip the hassfest quality check
when generating integrations, as the quality scale rules are marked as
todo, and only run against the generated integration.
Correct typo in help for hassfest command `--plugins` flag.
Update Integration.core method to use absolute path to ensure it returns
the true if the integration is a core integration, which was causing
other checks to fail, as the integration was not being marked as core.
Always output subprocess output as it contains the error message when a
command fails, without this the user would not know why the command
failed.
Fixes : #128639
* Adjust comment language
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2025-02-11 16:24:04 +01:00
Erik Montnemery
f83c8de8d3
Update signature of platforms' async_setup_entry ( #138201 )
2025-02-10 21:08:03 +01:00
epenet
5df7092f41
Improve formatting in core files ( #135256 )
...
* Adjust core files formatting
* Adjust translations script
2025-01-10 09:08:37 +01:00
epenet
e9616f38d8
Update scaffold to use internal _PLATFORM constant ( #135177 )
2025-01-09 12:41:29 +01:00
Joris Pelgröm
488c5a6b9f
Use is in FlowResultType enum comparison in integration scaffold tests ( #135133 )
2025-01-08 22:10:29 +01:00
Matthias Alphart and Josef Zweck
ecfa888918
Create quality_scale.yaml from integration scaffold script ( #132199 )
...
Co-authored-by: Josef Zweck <24647999+zweckj@users.noreply.github.com >
2024-12-11 13:52:53 +01:00
Christopher Fenner and Martin Hjelmare
144454b8c3
Remove duplicate oauth2 token validity check ( #128419 )
...
* remove duplicate validity check
* Apply suggestions from code review
* add leftover
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2024-10-16 11:42:44 +02:00
Alberto Montes
28ece89272
Update string formatting to use f-string on core codebase ( #125988 )
...
* Update string formatting to use f-string on core codebase
* Small change given review feedback
2024-09-19 14:31:13 +02:00
epenet
ad26db7dc8
Replace pylint broad-exception-raised rule with ruff ( #123021 )
2024-08-02 12:24:03 +02:00
Marc Mueller
ca55986057
Import Generator from collections.abc (1) ( #120914 )
2024-07-01 11:51:51 +02:00
epenet
e818de1da8
Use service_calls fixture in scaffold ( #119266 )
2024-06-10 10:44:00 +02:00
Marc Mueller
fe21e2b8ba
Import Generator from typing_extensions (1) ( #118986 )
2024-06-06 17:02:13 +02:00
epenet
ef6c7621cf
Use registry fixtures in scaffold ( #118308 )
2024-05-28 14:20:01 +02:00
Marc Mueller
26fb7627ed
Update scaffold templates to use runtime_data ( #117819 )
2024-05-21 07:15:08 +02:00
Sid
2cc916db6d
Replace pylint broad-except with Ruff BLE001 ( #116250 )
2024-05-07 14:00:27 +02:00
Sid
b456d97e65
Replace pylint protected-access with Ruff SLF001 ( #115735 )
2024-05-06 20:33:26 +02:00
Sid
376aafc83e
Enable Ruff INP001 ( #115082 )
2024-04-08 15:43:58 +02:00
Sid and Martin Hjelmare
0d66d298ec
Enable Ruff RET504 ( #114528 )
...
* Enable Ruff RET504
* fix test
* Use noqa instead of cast
* fix sonos RET504
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2024-04-06 11:07:37 +02:00
Sid and Franck Nijhof
00ec7f11f0
Enable Ruff rule PT007 ( #113764 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl >
2024-03-19 09:01:07 +01:00
Sid
727581eea3
Add first batch of Ruff PT rules ( #113665 )
...
* Add first batch of Ruff PT rules
* fix weather test
* Fix pilight test
* Update test_intent.py
* Update pilight test_init.py
* Update test_init.py
2024-03-18 13:26:14 +01:00
Johnny Willemsen
0d279ccd13
Improve scaffold test_config_flow ( #113229 )
...
Update test_config_flow.py
Use DOMAIN constant
2024-03-18 00:47:11 +01:00
Marc Mueller
a6b842f818
Add empty line after module docstring (2) [other] ( #112738 )
2024-03-08 19:16:38 +01:00
Marc Mueller
19ab3d6daf
Add empty line after module docstring [helpers + other] ( #112707 )
2024-03-08 10:36:11 -05:00
Erik Montnemery
a0e558c457
Add generic classes BaseFlowHandler and BaseFlowManager ( #111814 )
...
* Add generic classes BaseFlowHandler and BaseFlowManager
* Migrate zwave_js
* Update tests
* Update tests
* Address review comments
2024-02-29 16:52:39 +01:00
Robert Resch and Marc Mueller
edd7feaf10
Add task to install all requirements of an integration ( #108262 )
...
* Add task to install the requirements of an integration
* Gather recursive requirements
* Move valid_integration to util
* Apply suggestions from code review
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com >
* Implement suggestions
---------
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com >
2024-01-18 22:11:02 +01:00
Joost Lekkerkerker
a8ca73a7dd
Finish scaffold config flow with either abort or create entry ( #105012 )
2023-12-05 17:13:29 +01:00