Add max devices config to energy devices graph (#29255)

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
Franck Nijhof 2023-10-09 19:56:50 +02:00 committed by GitHub
parent bd018a257e
commit 5ca2daee6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,7 +181,17 @@ type: energy-self-sufficiency-gauge
The devices energy graph show the energy usage per device, it is sorted by usage. The devices energy graph show the energy usage per device, it is sorted by usage.
### Example By default, this card will show all your devices. Optionally, the number of devices can be limited by adding the `max_devices` option and specifying the maximum number of devices to show. If there are more devices available than shown, the devices with the highest energy usage are shown.
### Examples
```yaml ```yaml
type: energy-devices-graph type: energy-devices-graph
``` ```
The following example limits the number of shown devices to 5:
```yaml
type: energy-devices-graph
max_devices: 5
```