Skip to content

Commit f1d38d5

Browse files
authored
Merge pull request #8 from erlend-aasland/portnumber
Fix TCP port range
2 parents 746282b + ffacd93 commit f1d38d5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

custom_components/amshan/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
vol.Required(CONF_TCP_HOST): vol.Match(
6060
HOSTNAME_IP4_IP6_REGEX, msg="Must be a valid hostname or ip address."
6161
),
62-
vol.Required(CONF_TCP_PORT): vol.Range(0, 65353),
62+
vol.Required(CONF_TCP_PORT): vol.Range(0, 65535),
6363
}
6464

6565
SERIAL_SCHEMA = vol.Schema(SERIAL_SCHEMA_DICT)

custom_components/amshan/strings.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"error": {
3232
"voluptuous_host": "Must be a valid hostname or IP-address",
33-
"voluptuous_port": "Must be a valid port number (between 0 and 65353)",
33+
"voluptuous_port": "Must be a valid port number (between 0 and 65535)",
3434
"timeout_connect": "Timeout connecting",
3535
"timeout_read_frames": "Timeout connecting",
3636
"cannot_connect": "Failed to connect, please try again",
@@ -42,4 +42,4 @@
4242
"already_configured": "Device is already configured"
4343
}
4444
}
45-
}
45+
}

custom_components/amshan/translations/en.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"serial_exception_errno_2": "Serial device not found",
1212
"unknown": "Unexpected error",
1313
"voluptuous_host": "Must be a valid hostname or IP-address",
14-
"voluptuous_port": "Must be a valid port number (between 0 and 65353)"
14+
"voluptuous_port": "Must be a valid port number (between 0 and 65535)"
1515
},
1616
"step": {
1717
"network_connection": {
@@ -51,4 +51,4 @@
5151
}
5252
}
5353
}
54-
}
54+
}

0 commit comments

Comments
 (0)