Skip to content

Commit 65a443b

Browse files
authored
Merge pull request #1955 from Andry925/fix/add-validation-to-port-field-bacnet
Added validation to port field
2 parents 960abf8 + b7cca2e commit 65a443b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thingsboard_gateway/connectors/bacnet/bacnet_connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def __is_valid_application_device_section(self) -> bool:
248248
return False
249249

250250
port = app.get('port')
251-
if not (1 <= port <= 65535):
251+
if not (1 <= int(port) <= 65535):
252252
self.__log.error(
253253
"The port inside application section must be in range [1, 65535], but got %d.",
254254
port

0 commit comments

Comments
 (0)