Skip to content

Commit

Permalink
Version: 1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
stlehmann committed Feb 8, 2020
1 parent 35f1114 commit 9155c7f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
12 changes: 9 additions & 3 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
Changelog
=========

Version 1.0.6 [Unreleased]
--------------------------
* Do not install typing when using Python >= 3.5
Version 1.0.7
-------------
* optional support for async mqtt loop
* include Python 3.7 and 3.8 in ci

Version 1.0.6
-------------
* do not install typing when using Python >= 3.5
[cekk]
* omit verbose logging messages

Version 1.0.5
-------------
Expand Down
14 changes: 9 additions & 5 deletions flask_mqtt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
:author: Stefan Lehmann <stlm@posteo.de>
:license: MIT, see license file or https://opensource.org/licenses/MIT
:created on 2018-04-19 19:43:41
:last modified by: Stefan Lehmann
:last modified time: 2018-11-09 17:21:21
"""
import sys
import ssl
Expand Down Expand Up @@ -49,7 +45,7 @@


# current Flask-MQTT version
__version__ = "1.0.6"
__version__ = "1.0.7"


#: Container for topic + qos
Expand All @@ -64,6 +60,14 @@ class Mqtt():
"""Main Mqtt class."""

def __init__(self, app=None, connect_async=False, mqtt_logging=False):
"""
Create Mqtt object.
:param app: flask application object
:param connect_async: if True then connect_aync will be used to connect to MQTT broker
:param mqtt_logging: if True then messages from MQTT client will be logged
"""
# type: (Flask, bool, bool) -> None
self.app = app
self._connect_async = connect_async # type: bool
Expand Down

0 comments on commit 9155c7f

Please sign in to comment.