Skip to content

Commit

Permalink
fix parsing mqttport
Browse files Browse the repository at this point in the history
  • Loading branch information
tillsteinbach committed Sep 1, 2021
1 parent c1ee9c0 commit 90a6496
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
## [Unreleased]
- No unreleased changes so far

## [0.14.8] - 2021-09-01
### Fixed
- Fixed parsing mqttport argument

## [0.14.7] - 2021-09-01
### Fixed
- typing error on python 3.7
Expand Down Expand Up @@ -228,7 +232,8 @@ Send empty message when topic is disabled
## [0.1.0] - 2021-05-27
Initial release

[unreleased]: https://github.com/tillsteinbach/WeConnect-mqtt/compare/v0.14.7...HEAD
[unreleased]: https://github.com/tillsteinbach/WeConnect-mqtt/compare/v0.14.8...HEAD
[0.14.8]: https://github.com/tillsteinbach/WeConnect-mqtt/releases/tag/v0.14.8
[0.14.7]: https://github.com/tillsteinbach/WeConnect-mqtt/releases/tag/v0.14.7
[0.14.6]: https://github.com/tillsteinbach/WeConnect-mqtt/releases/tag/v0.14.6
[0.14.5]: https://github.com/tillsteinbach/WeConnect-mqtt/releases/tag/v0.14.5
Expand Down
2 changes: 1 addition & 1 deletion weconnect_mqtt/weconnect_mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def main(): # noqa: C901 # pylint: disable=too-many-branches,too-many-statemen
parser.add_argument('--version', action='version',
version='%(prog)s {version} (using WeConnect-python {weversion})'.format(version=__version__, weversion=__weconnect_version__))
parser.add_argument('--mqttbroker', type=str, help='Address of MQTT Broker to connect to', required=True)
parser.add_argument('--mqttport', type=str, help='Port of MQTT Broker. Default is 1883 (8883 for TLS)',
parser.add_argument('--mqttport', type=NumberRangeArgument(1, 65535), help='Port of MQTT Broker. Default is 1883 (8883 for TLS)',
required=False, default=None)
parser.add_argument('--mqttclientid', required=False, default=None, help='Id of the client. Default is a random id')
parser.add_argument('-k', '--mqttkeepalive', required=False, type=int, default=60,
Expand Down

0 comments on commit 90a6496

Please sign in to comment.