Skip to content

Commit 0f665e4

Browse files
committed
Add port
1 parent fc942a9 commit 0f665e4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

source/developers/development_validation.markdown

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,14 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
5757

5858
### {% linkable_title Port %}
5959

60-
As all port numbers are coming out of the range 1 till 65535 a range check should be performed.
60+
As all port numbers are coming out of the range 1 till 65535.
6161

6262
```python
6363
DEFAULT_PORT = 993
6464

6565
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
6666
...
67-
vol.Optional(CONF_PORT, default=DEFAULT_PORT):
68-
vol.All(vol.Coerce(int), vol.Range(min=1, max=65535)),
67+
vol.Optional(CONF_PORT, default=DEFAULT_PORT): cv.port,
6968
```
7069

7170
### {% linkable_title Sensor types %}

0 commit comments

Comments
 (0)