Skip to content

Commit cd553dc

Browse files
committed
Fix indent
1 parent 83e06e8 commit cd553dc

File tree

2 files changed

+48
-52
lines changed

2 files changed

+48
-52
lines changed

source/_components/media_player.russound_rnet.markdown

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,26 @@ To add a device to your installation, add the following to your `configuration.y
2323
```yaml
2424
# Example configuration.yaml entry
2525
media_player:
26-
platform: russound_rnet
27-
host: 192.168.1.10
28-
port: 1337
29-
name: Russound
30-
zones:
31-
1:
32-
name: Main Bedroom
33-
2:
34-
name: Living Room
35-
3:
36-
name: Kitchen
37-
4:
38-
name: Bathroom
39-
5:
40-
name: Dining Room
41-
6:
42-
name: Guest Bedroom
43-
sources:
44-
- name: Sonos
45-
- name: Sky+
46-
- name: iPod
47-
- name: Unused 1
48-
- name: Unused 2
49-
- name: Kodi
26+
- platform: russound_rnet
27+
host: 192.168.1.10
28+
port: 1337
29+
name: Russound
30+
zones:
31+
1:
32+
name: Main Bedroom
33+
2:
34+
name: Living Room
35+
3:
36+
name: Kitchen
37+
4:
38+
name: Bathroom
39+
5:
40+
name: Dining Room
41+
6:
42+
name: Guest Bedroom
43+
sources:
44+
- name: Sonos
45+
- name: Sky+
5046
```
5147
5248
Configuration variables:

source/_components/media_player.universal.markdown

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -21,38 +21,38 @@ A Universal Media Player is created in `configuration.yaml` as follows.
2121
```yaml
2222
# Example configuration.yaml entry
2323
media_player:
24-
platform: universal
25-
name: MEDIA_PLAYER_NAME
26-
children:
27-
- media_player.CHILD_1_ID
28-
- media_player.CHILD_2_ID
29-
commands:
30-
turn_on:
31-
service: SERVICE
32-
data: SERVICE_DATA
33-
turn_off:
34-
service: SERVICE
35-
data: SERVICE_DATA
36-
volume_up:
37-
service: SERVICE
38-
data: SERVICE_DATA
39-
volume_down:
40-
service: SERVICE
41-
data: SERVICE_DATA
42-
volume_mute:
43-
service: SERVICE
44-
data: SERVICE_DATA
45-
attributes:
46-
is_volume_muted: ENTITY_ID|ATTRIBUTE
47-
state: ENTITY_ID|ATTRIBUTE
24+
- platform: universal
25+
name: MEDIA_PLAYER_NAME
26+
children:
27+
- media_player.CHILD_1_ID
28+
- media_player.CHILD_2_ID
29+
commands:
30+
turn_on:
31+
service: SERVICE
32+
data: SERVICE_DATA
33+
turn_off:
34+
service: SERVICE
35+
data: SERVICE_DATA
36+
volume_up:
37+
service: SERVICE
38+
data: SERVICE_DATA
39+
volume_down:
40+
service: SERVICE
41+
data: SERVICE_DATA
42+
volume_mute:
43+
service: SERVICE
44+
data: SERVICE_DATA
45+
attributes:
46+
is_volume_muted: ENTITY_ID|ATTRIBUTE
47+
state: ENTITY_ID|ATTRIBUTE
4848
```
4949
5050
Configuration variables:
5151
52-
- **name**: The name to assign the player
53-
- **children**: Ordered list of child media players this entity will control
54-
- **commands** *Optional*: Commands to be overwritten. Possible entries are *turn_on*, *turn_off*, *volume_up*, *volume_down*, and *volume_mute*.
55-
- **attributes** *Optional*: Attributes that can be overwritten. Possible entries are *is_volume_muted* and *state*. The values should be an entity id and state attribute separated by a bar (\|). If the entity id's state should be used, then only the entity id should be provided.
52+
- **name** (*Required*): The name to assign the player
53+
- **children** (*Required*): Ordered list of child media players this entity will control
54+
- **commands** (*Optional*): Commands to be overwritten. Possible entries are *turn_on*, *turn_off*, *volume_up*, *volume_down*, and *volume_mute*.
55+
- **attributes** (*Optional*): Attributes that can be overwritten. Possible entries are *is_volume_muted* and *state*. The values should be an entity id and state attribute separated by a bar (\|). If the entity id's state should be used, then only the entity id should be provided.
5656
5757
The universal media player will primarily imitate one of its *children*. The first child in the list that is active (not idle/off) will be controlled the universal media player. The universal media player will also inherit its state from the first active child. Entities in the *children* list must be media players.
5858

0 commit comments

Comments
 (0)