From 780e40e7141a82927ea20c3de37763c2acc28539 Mon Sep 17 00:00:00 2001 From: OzGav Date: Wed, 4 Oct 2023 16:45:03 +1000 Subject: [PATCH] Update sidebar.markdown (#29140) --- source/_dashboards/sidebar.markdown | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/source/_dashboards/sidebar.markdown b/source/_dashboards/sidebar.markdown index d5774b5cd4b..14ff2ab1205 100644 --- a/source/_dashboards/sidebar.markdown +++ b/source/_dashboards/sidebar.markdown @@ -25,18 +25,6 @@ type: type: string {% endconfiguration %} -### Example - -Alternatively, the position of the card can be configured using YAML with the `view_layout` option: - -```yaml -type: entities -entities: - - media_player.lounge_room -view_layout: - position: sidebar -``` - ## Cards config: {% configuration %} @@ -45,3 +33,17 @@ view_layout.position: description: "The position of the card, `main` or `sidebar`" type: string {% endconfiguration %} + +### Example + +The position of the card is configured using YAML with the `view_layout` option: + +```yaml +type: sidebar +cards: + - type: entities + entities: + - media_player.lounge_room + view_layout: + position: sidebar +```