diff --git a/meterparser/CHANGELOG.md b/meterparser/CHANGELOG.md index d01b619..279eb32 100644 --- a/meterparser/CHANGELOG.md +++ b/meterparser/CHANGELOG.md @@ -1,15 +1,17 @@ # Changelog -## [1.0.1.0] +### [1.0.1.1] +- Fix incorrect mqtt_url default +### [1.0.1.0] - Set an specific aruco marker number so you can add multiple counters using the same camera - Move custom mqtt setting to a single url (breaking change) - If url schema is not http(s), try get an image using ffmpeg -## [1.0.0.28] +### [1.0.0.28] - Adjust time limit for camera scan interval - Update base docker images -## [1.0.0.25] +### [1.0.0.25] - Deal with possible HA restart and username/password change. -## [1.0.0.*] +### [1.0.0.*] - Make a lower limit so device won't be unavailable - Easier to read log messages - Tune limits and fail safe OCR readings diff --git a/meterparser/config.yaml b/meterparser/config.yaml index 53633bc..64ea860 100644 --- a/meterparser/config.yaml +++ b/meterparser/config.yaml @@ -1,5 +1,5 @@ name: Meter Parser -version: 1.0.1.0 +version: 1.0.1.1 slug: meter-parser description: Read meter needles and numbers from a camera snapshot. url: https://github.com/junalmeida/homeassistant-addons/tree/main/meterparser @@ -14,7 +14,6 @@ arch: - armv7 - i386 options: - mqtt_url: "mqtt://auto_username:auto_password@auto_hostname" cameras: - snapshot_url: http://192.168.100.153/snapshot.jpg name: Water Meter diff --git a/meterparser/src/app/mqtt.py b/meterparser/src/app/mqtt.py index b29070d..af6fbf2 100644 --- a/meterparser/src/app/mqtt.py +++ b/meterparser/src/app/mqtt.py @@ -44,7 +44,7 @@ def run(self): self.check_auth() def check_auth(self): - if "mqtt_url" in config: + if "mqtt_url" in config and config["mqtt_url"] is not None and config["mqtt_url"] != "": mqtt_url = urlparse(config["mqtt_url"]) self._mqtt_config = { "username": mqtt_url.username,