Rename Services to Actions in integrations: Q (#33825)

This commit is contained in:
Franck Nijhof 2024-07-17 06:53:44 +02:00 committed by GitHub
parent 02dce15a8f
commit bdb4c8a7b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,14 +35,14 @@ The qBittorrent integration will add the following sensors:
- `sensor.qbittorrent_inactive_torrents`: The current inactive torrents in qBittorrent.
- `sensor.qbittorrent_paused_torrents`: The current paused torrents in qBittorrent.
## Services
## Actions
### Service `qbittorrent.get_torrents`
### Action `qbittorrent.get_torrents`
This service populates [Response Data](/docs/scripts/service-calls#use-templates-to-handle-response-data)
This action populates [Response Data](/docs/scripts/service-calls#use-templates-to-handle-response-data)
with a dictionary of torrents based on the provided filter.
| Service data attribute | Optional | Description | Example |
| Data attribute | Optional | Description | Example |
| ---------------------- | -------- | ---------------------------------------------- | --------------------------------------------------- |
| `device` | no | The device you'd like to check the torrents of | all, active, inactive, paused, downloading, seeding |
| `torrent_filter` | no | The type of torrents you want in the response | all, active, inactive, paused, downloading, seeding |
@ -56,12 +56,12 @@ response_variable: torrents
The response data contains the field `torrents` which contains a dictionary of torrents. The names of the torrents are the keys.
### Service `qbittorrent.get_all_torrents`
### Action `qbittorrent.get_all_torrents`
This service populates [Response Data](/docs/scripts/service-calls#use-templates-to-handle-response-data)
This action populates [Response Data](/docs/scripts/service-calls#use-templates-to-handle-response-data)
with a dictionary of torrents based on the provided filter.
| Service data attribute | Optional | Description | Example |
| Data attribute | Optional | Description | Example |
| ---------------------- | -------- | --------------------------------------------- | --------------------------------------------------- |
| `torrent_filter` | no | The type of torrents you want in the response | all, active, inactive, paused, downloading, seeding |