Skip to content

Commit

Permalink
Fixing mqtt disconnect callback. Bumping versions
Browse files Browse the repository at this point in the history
  • Loading branch information
yozik04 committed Aug 29, 2022
1 parent 1548769 commit db98ca3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nibe_mqtt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

cfg = Config()

__version__ = "0.1.0"
__version__ = "0.1.1"
2 changes: 1 addition & 1 deletion nibe_mqtt/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _on_connect_cb(self, client, userdata, flags, result, properties=None):
)
self._client.subscribe(f"{self._conf['prefix']}/coils/+/set")

def _on_disconnect_cb(self, userdata, rc, properties=None):
def _on_disconnect_cb(self, client, userdata, rc, properties=None):
logger.info("MQTT disconnected")

def _on_message_cb(self, client, userdata, msg: MQTTMessage):
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
nibe>=0.3.1
nibe>=0.3.2

paho_mqtt>=1.5.0
voluptuous>=0.13.0
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ include_package_data = True
packages = find:
python_requires = >=3.9
install_requires =
nibe >= 0.3.1
nibe >= 0.3.2
paho_mqtt>=1.5.0
voluptuous>=0.13.0
pyyaml>=6.0
Expand Down

0 comments on commit db98ca3

Please sign in to comment.