Skip to content

Commit a238c02

Browse files
authored
Update variable description style (home-assistant#4043)
* Update variable description style * ✏️ Tiny grammar fix * ✏️ Tiny grammar fix
1 parent c836d8f commit a238c02

File tree

2 files changed

+26
-9
lines changed

2 files changed

+26
-9
lines changed

source/_components/light.mystrom.markdown

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,21 @@ light:
2626
mac: MAC_ADDRESS
2727
```
2828
29-
Configuration variables:
30-
31-
- **host** (*Required*): The IP address of your myStrom WiFi Bulb, eg. `192.168.1.32`.
32-
- **mac** (*Required*): The MAC address of your myStrom WiFi Bulb, eg. `5AAC8CA542F3`.
33-
- **name** (*Optional*): The name to use when displaying this light.
29+
{% configuration %}
30+
host:
31+
description: "The IP address of your myStrom WiFi Bulb, e.g., `192.168.1.32`."
32+
required: true
33+
type: string
34+
mac:
35+
description: "The MAC address of your myStrom WiFi Bulb, e.g., `5AAC8CA542F3`."
36+
required: true
37+
type: string
38+
name:
39+
description: The name to use when displaying this bulb.
40+
required: false
41+
type: string
42+
default: myStrom Bulb
43+
{% endconfiguration %}
3444

3545
Check if you are able to access the light located at `IP_ADRRESS`. The details about your light is provided as a JSON response.
3646

source/_components/switch.mystrom.markdown

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,17 @@ switch:
2525
host: IP_ADRRESS
2626
```
2727
28-
Configuration variables:
29-
30-
- **host** (*Required*): The IP address of your myStrom switch, eg. `http://192.168.1.32`.
31-
- **name** (*Optional*): The name to use when displaying this switch.
28+
{% configuration %}
29+
host:
30+
description: "The IP address of your myStrom switch, e.g., `http://192.168.1.32`."
31+
required: true
32+
type: string
33+
name:
34+
description: The name to use when displaying this switch.
35+
required: false
36+
type: string
37+
default: myStrom Switch
38+
{% endconfiguration %}
3239

3340
Check if you are able to access the device located at `http://IP_ADRRESS`. The details about your switch is provided as a JSON response.
3441

0 commit comments

Comments
 (0)