J. Nick Koston
3f9dbd3e25
Fix config modules being imported in the event loop ( #112462 )
...
* Fix config modules being imported in the event loop
There was a late import in this integration because of the circular import.
The code has been rearranged to avoid the circular imports
* fixes
* fixes
* fix patching
* make eager
* remove unrelated change from this branch
2024-03-05 21:18:57 -05:00
G Johansson
9989a63cdf
Add reconfigure step to config flow ( #108794 )
...
* Initial commit reconfigure
* test config config_entries
* Fix reconfigure
* test_config_entries
* review comment
* No reconfigure if reauth ongoing
* Fix tests
* Fix tests
* handle source creating flows
* combine
* No black
* Also check reconfigure in reauth flow
* Fix support
* Add entry id
* reset data entry flow
* Mods
* context data
* reset formatting
* Fix config flow platforms
* Fix tests
* Fix step message
* Handling reconfigure step
* Fix more tests
* Config entries tests
* entry_id always means reconfigure
* Mods
* Remove no longer valid exception
* Fixes
* reset silabs test
* dev reg
* resets
* assist pipeline
* Adjust config_entries
* Fix
* Fixes
* docstrings
* Review comment
* docstring
2024-03-01 12:29:35 +01: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
Franck Nijhof
e0a9dcd996
Add label registry ( #110821 )
2024-02-19 11:59:08 +01:00
Franck Nijhof
4570eed6f6
Add floor registry ( #110741 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-02-17 21:21:15 +01:00
Franck Nijhof
aa8d8402b4
Cleanups in entity registry tests ( #110788 )
...
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-02-17 19:07:46 +01:00
Franck Nijhof
0fbadc274a
Cleanups in device registry tests ( #110786 )
2024-02-17 14:06:53 +01:00
Franck Nijhof
df3556f0d8
Cleanups in area registry tests ( #110785 )
...
* Cleanups in area registry tests
* Adjust typing
2024-02-17 13:20:33 +01:00
J. Nick Koston
50770ce436
Refactor config integration to use normal functions for setup ( #110750 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-02-16 18:12:33 -06:00
J. Nick Koston
37897ee384
Move late import of config flows in loader to load time ( #110688 )
...
* Move late import of config flows in loader to load time
There does not seem to be any reason to import the
generated flows late. Import them at load time
with the rest of the generated files
* tests
2024-02-16 07:55:12 +01:00
Robert Resch
6fdad44941
Improve invalid error messages in the config flows ( #108075 )
2024-01-30 12:24:19 +01:00
Marc Mueller
030727b078
Remove deprecated event_loop fixtures in tests ( #109048 )
2024-01-29 14:24:58 +01:00
Erik Montnemery
9c727e5ea8
Add icon to areas ( #108650 )
2024-01-24 19:11:03 +01:00
J. Nick Koston
2eea658fd8
Convert getting and removing access tokens to normal functions ( #108670 )
2024-01-22 20:51:33 -10:00
Franck Nijhof
cdf3c07488
Add icon to entity registry list for display ( #108313 )
2024-01-19 15:11:27 +01:00
Erik Montnemery
6908497c3d
Add minor version to config entries ( #105479 )
2023-12-12 08:44:35 +01:00
Jan Bouwhuis
861bb48ab6
Assign specific error code for HomeAssistantError on websocket_api connection exceptions ( #104700 )
...
Assign specific error code for HomeAssistantError
2023-11-29 13:07:52 +01:00
Aarni Koskela
706add4a57
Switch formatting from black to ruff-format ( #102893 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-27 14:38:59 +01:00
Erik Montnemery
4536fb3541
Remove mock_entity_platform test helper ( #104073 )
2023-11-16 16:55:08 +01:00
Jan-Philipp Benecke
9ab1cb83d8
Update a-c* tests to use entity & device registry fixtures ( #103793 )
...
* Update a-c* tests to use entity & device registry fixtures
* Revert some changes
* Revert formatting
* retrigger CI
2023-11-12 13:45:30 -05:00
Erik Montnemery
3ba8a82243
Differentiate between warnings and errors in check_config helper ( #102902 )
...
* Differentiate between warnings and errors in check_config helper
* Update tests
* Treat configuration errors in frontend and its dependencies as errors
* Improve test coverage
* Address review comments
* Improve test coverage
* Improve test coverage
* Address review comments
* Add comment
2023-11-05 03:08:04 +01:00
Erik Montnemery
1621310ba7
Add serial_number to device registry entries ( #102334 )
...
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-10-22 15:14:44 +02:00
Erik Montnemery
4498c2e8c4
Validate steps in Flowhandler ( #102152 )
...
* Validate steps in Flowhandler
* Move validation to FlowManager._async_handle_step
* Fix _raise_if_not_has_step
* Fix config_entries tests
* Fix tests
* Rename
* Add test
2023-10-19 13:34:10 +02:00
Erik Montnemery
b885dfa5a8
Add preview to sensor group config and option flows ( #83638 )
2023-08-22 10:29:16 +02:00
Robert Resch
b0f68f1ef3
Use @require_admin decorator ( #98061 )
...
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2023-08-14 15:07:20 +02:00
Erik Montnemery
5909a1187d
Adjust config tests which create devices ( #98184 )
2023-08-10 18:22:12 +02:00
Franck Nijhof
40e256847c
Add is_admin checks to scene/script/automation APIs ( #98025 )
2023-08-08 12:11:52 +02:00
Franck Nijhof
b286da211a
Add is_admin check to check configuration API ( #97788 )
2023-08-04 19:25:01 +02:00
Erik Montnemery
4ceba01ab7
Prevent creating scripts which override script services ( #96828 )
2023-07-18 12:10:40 +02:00
Erik Montnemery
1fec407a24
Set scripts which fail validation unavailable ( #95381 )
2023-06-27 18:24:34 +02:00
Erik Montnemery
17ac1a6d32
Set automations which fail validation unavailable ( #94856 )
2023-06-27 18:23:33 +02:00
Erik Montnemery
9a3077d64a
Always setup demo platforms with device support from config entry ( #94586 )
...
* Always setup demo platforms with device support from config entry
* Adjust test fixutres
* Update tests depending on the demo integration
2023-06-14 16:50:35 +02:00
Marvin Wichmann
795ef075da
Restore original websocket commands for config entries ( #93707 )
...
Restore original websocket commands and add "config_entries/get_single"
2023-05-28 21:40:35 -04:00
Jan Bouwhuis
ec98e22330
Add type hints for stub_blueprint_populate fixture ( #93568 )
...
Add typehints for stub_blueprint_populate fixture
2023-05-26 08:13:13 +02:00
Erik Montnemery
3cca338c6e
Improve blueprint test fixtures ( #93519 )
2023-05-25 13:45:19 +02:00
epenet
dc14b83249
Add ability to unload demo integration ( #92515 )
...
* Add unload to demo integration
* Adjust config tests to use kitchen_sink
* Use async_unload_platforms
2023-05-24 09:38:29 +02:00
Erik Montnemery
b754f03eb1
Add WS command for getting a config entry ( #93387 )
...
* Add WS command for getting a config entry
* Update tests
2023-05-23 10:44:02 +02:00
Erik Montnemery
3931e11fd9
Try to load integration before starting option flow ( #90111 )
...
* Try to load integration before starting option flow
* Adjust tests
2023-03-22 20:10:10 +01:00
Erik Montnemery
1f34fa63ab
Always include platform in `config/entity_registry/list_for_display` ( #88601 )
...
Always include platform in config/entity_registry/list_for_display
2023-02-22 17:59:52 +01:00
J. Nick Koston
e38836b6e1
Update async_matching_config_entries to use async_get_integrations ( #88527 )
...
* Update async_matching_config_entries to use async_get_integrations
* Update homeassistant/components/config/config_entries.py
* Update homeassistant/components/config/config_entries.py
2023-02-21 21:17:18 -05:00
Erik Montnemery
0c4c95394e
Add WS command config/entity_registry/list_for_display ( #87787 )
...
* Add WS command config/entity_registry/list_for_display
* Make more keys in the display dict optional
* Move disabled_by check to ws command handler
* Hide hidden_by if not hidden
* Use send_json_auto_id in the new test
* Don't include entities which have no data needed for display
* Include platform for entries with translation_key
2023-02-21 20:40:39 +01:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
1e352b60df
Add type hints to integration tests (part 11) ( #87996 )
2023-02-13 14:22:49 +01:00
epenet
9f688a564f
Add type hints to integration tests (part 4) ( #87848 )
2023-02-11 08:26:13 +01:00
Franck Nijhof
330e1c6cbb
Clean up unnecessary registry mocks from integration tests ( #87763 )
2023-02-09 10:43:45 +01:00
epenet
807c69f621
Add type hints to integration tests (b-c) ( #87698 )
2023-02-08 18:08:43 +01:00
Erik Montnemery
93dafefd96
Include entity options in RegistryEntry.as_partial_dict ( #87539 )
2023-02-08 08:32:46 -05:00
epenet
aa00114c2f
Add return type to async tests without arguments ( #87612 )
2023-02-07 10:26:56 +01:00
Erik Montnemery
4d4fb2477d
Optionally update sensor units when unit system is changed ( #83851 )
2023-02-03 16:30:50 +01:00
Franck Nijhof
ef800335fb
Enable Ruff PT022 ( #86792 )
...
* Enable Ruff PT022
* Adjust found cases
2023-01-27 13:57:06 +01:00