Document changes in integration_entities (#31697)

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
Erik Montnemery 2024-03-06 11:35:36 +01:00 committed by GitHub
parent 1b428ada77
commit 98c1851b4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -508,10 +508,12 @@ The same thing can also be expressed as a test:
{% endraw %}
### Integrations
### Entities for an integration
- `integration_entities(integration)` returns a list of entities that are associated with a given integration, such as `hue` or `zwave_js`.
- `integration_entities(title)` if you have multiple instances set-up for an integration, you can also use the title you've set for the integration in case you only want to target a specific device bridge.
- `integration_entities(config_entry_title)` if you have multiple entries set-up for an integration, you can also use the title you've set for the integration in case you only want to target a specific entry.
If there is more than one entry with the same title, the entities for all the matching entries will be returned, even if the entries are for different integrations. It's not possible to search for entities of an untitled integration.
#### Integrations examples