hass-core/tests/testing_config/custom_components
J. Nick Koston fbabbc8f92
Limit legacy state translations to custom components (#112295)
* Limit legacy state translations to custom components

We were trying to load **thousands** of `*.light.json`, `*.switch.json` files at run time that did not exist.

There have been replaced with entity translations: https://github.com/home-assistant/developers.home-assistant/pull/1557 https://github.com/home-assistant/core/pull/82701

https://github.com/home-assistant/core/pull/112023 will completely remove them, but
for now we will only load them for custom components to reduce the number
of files having to be examined

* reduce

* reduce

* reduce

* reduce

* comment

* coverage

* try to remove empty dict in loaded_translations fallback when missing
2024-03-05 17:27:45 -05:00
..
hue Prevent partial custom component overlays (#21070) 2019-02-21 09:41:36 +01:00
switch Load requirements and dependencies from manifests. Fallback to current REQUIREMENTS and DEPENDENCIES (#22717) 2019-04-11 01:26:36 -07:00
test Reduce overhead to load multiple languages in translations (#111028) 2024-02-20 21:52:28 -05:00
test_bad_version Prettify json (tests) (#68888) 2022-03-30 11:12:58 +02:00
test_constant_deprecation Include deprecated constants in wildcard imports (#107114) 2024-01-05 11:46:45 +01:00
test_embedded Add icon translations support (#103294) 2024-01-19 16:56:56 +01:00
test_integration_frame Avoid expensive inspect calls in config validators (#112085) 2024-03-02 21:50:35 -05:00
test_integration_platform Avoid trying to import platforms that do not exist (#112028) 2024-03-02 22:14:28 -05:00
test_legacy_state_translations Limit legacy state translations to custom components (#112295) 2024-03-05 17:27:45 -05:00
test_legacy_state_translations_bad_data Limit legacy state translations to custom components (#112295) 2024-03-05 17:27:45 -05:00
test_no_version Prettify json (tests) (#68888) 2022-03-30 11:12:58 +02:00
test_package Add icon translations support (#103294) 2024-01-19 16:56:56 +01:00
test_package_loaded_executor Group loading of platforms in the import executor (#112141) 2024-03-03 21:32:19 -10:00
__init__.py Load requirements and dependencies from manifests. Fallback to current REQUIREMENTS and DEPENDENCIES (#22717) 2019-04-11 01:26:36 -07:00
test_standalone.py Black 2019-07-31 12:25:30 -07:00