Skip to content

Commit 24c63ab

Browse files
committed
Update configuration variables description
1 parent ccb0015 commit 24c63ab

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

source/_components/sensor.cups.markdown

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,22 @@ sensor:
3333
- C430
3434
```
3535
36-
Configuration variables:
37-
38-
- **printers** array (*Required*): List of printers to add.
39-
- **host** (*Optional*): IP address of the CUPS print server.
40-
- **port** (*Optional*): Port address of the CUPS print server. Defaults to 631.
41-
36+
{% configuration %}
37+
printers:
38+
description: List of printers to add.
39+
required: true
40+
type: list
41+
host:
42+
description: IP address of the CUPS print server.
43+
required: false
44+
type: string
45+
default: 127.0.0.1
46+
port:
47+
description: Port of the CUPS print server.
48+
required: false
49+
type: int
50+
default: 631
51+
{% endconfiguration %}
4252
4353
<p class='note'>
4454
You will need to install the `python3-dev` or `python3-devel` and the development files for CUPS (`libcups2-dev` or`cups-devel`) package on your system manually (eg. `sudo apt-get install python3-dev libcups2-dev` or `sudo dnf -y install python3-devel cups-devel`) along with a compiler (`gcc`).

0 commit comments

Comments
 (0)