Skip to content

Commit

Permalink
Removed superfluous arguments (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickBaus authored Jan 21, 2025
1 parent 38c4ddf commit 8f4c80e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,13 @@ class MQTTParams(BaseModel):
hosts: List of Tuple of str and int
A list of host:port tuples. The list contains the servers of a cluster. If no port is provided it defaults to
1883. If port number 0 is provided the default value of 1883 is used.
identifier: str or None
An MQTT client id used to uniquely identify a client to persist messages.
username: str or None
The username used for authentication. Set to None if no username is required
password: str or None
The password used for authentication. Set to None if no username is required
"""

hosts: list[tuple[str, int]]
identifier: str | None
username: str | None
password: str | None

Expand Down
2 changes: 1 addition & 1 deletion tests/test_env_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_mqtt_hostnames_pass(hosts, result):
"""
Test parsing hostname(s) from env variables.
"""
env_params = MQTTParams(hosts=hosts, identifier="foo", username="bar", password="12345")
env_params = MQTTParams(hosts=hosts, username="bar", password="12345")

assert env_params.hosts == result

Expand Down

0 comments on commit 8f4c80e

Please sign in to comment.