Document examples to be more readable.

This commit is contained in:
Aalian Khan
2023-04-10 16:06:36 -04:00
committed by GitHub
parent 8cb96c2c98
commit 7ee82546f5

View File

@@ -139,6 +139,9 @@ The area object includes all options from the template mushroom card and `extra_
#### Example #### Example
```yaml ```yaml
strategy:
type: custom:mushroom-strategy
options:
areas: areas:
- name: Family Room - name: Family Room
icon: mdi:television icon: mdi:television
@@ -154,6 +157,7 @@ areas:
- name: Kitchen - name: Kitchen
icon: mdi:silverware-fork-knife icon: mdi:silverware-fork-knife
icon_color: red icon_color: red
views: []
``` ```
### Entity Config ### Entity Config
@@ -162,9 +166,13 @@ The `entity_config` essentially enables you to give a specific entity any card y
#### Example #### Example
```yaml ```yaml
strategy:
type: custom:mushroom-strategy
options:
entity_config: entity_config:
- entity: fan.master_bedroom_fan - entity: fan.master_bedroom_fan
type: custom:mushroom-fan-card type: custom:mushroom-fan-card
views: []
``` ```
### Pre-built views ### Pre-built views
@@ -185,12 +193,16 @@ Mushroom strategy includes pre-built views to control/view specific domains. Onl
#### Example #### Example
```yaml ```yaml
strategy:
type: custom:mushroom-strategy
options:
views: views:
lights: true lights: true
switches: true switches: true
covers: false covers: false
cameras: true cameras: true
thermostats: false thermostats: false
views: []
``` ```
### Chips ### Chips
@@ -214,6 +226,9 @@ Mushroom strategy has chips that count the number of devices active for a specif
#### Example #### Example
```yaml ```yaml
strategy:
type: custom:mushroom-strategy
options:
chips: chips:
climate_count: false climate_count: false
cover_count: false cover_count: false
@@ -228,8 +243,6 @@ chips:
entity: lock.front_door entity: lock.front_door
icon_color: red icon_color: red
content_info: none content_info: none
icon: ''
use_entity_picture: false
tap_action: tap_action:
action: toggle action: toggle
``` ```