From 6a7225f32d902ad44670d0eadff55b4a51324af0 Mon Sep 17 00:00:00 2001 From: lolouk44 Date: Wed, 1 Jul 2020 23:52:57 +0100 Subject: [PATCH] 0.1.6 --- CHANGELOG.md | 6 ++++++ Dockerfile | 2 +- config.json | 1 + src/Xiaomi_Scale.py | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c3f6dee..47f91ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [0.1.6] - 2020-07-01 +### Added +- Docker Image so install is quicker (no local build required). +## [0.1.5] - 2020-07-01 +### Added +- MQTT Discovery Support. ## [0.1.4] - 2020-06-29 ### Added - First release (version in line with non Add-On script for ease of maintenance). diff --git a/Dockerfile b/Dockerfile index d8e9481..d319573 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM python:3.8-slim - +LABEL io.hass.version="0.1.6" io.hass.type="addon" io.hass.arch="armhf|aarch64|i386|amd64" WORKDIR /opt/miscale COPY src /opt/miscale diff --git a/config.json b/config.json index 0b0681e..9313de7 100644 --- a/config.json +++ b/config.json @@ -4,6 +4,7 @@ "slug": "xiaomi_mi_scale", "description": "Read weight measurements from Xiamomi scale via BLE", "url": "https://github.com/lolouk44/xiaomi_mi_scale_ha_add_on", + "image": "lolouk44/xiaomi-mi-scale", "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"], "startup": "before", "boot": "auto", diff --git a/src/Xiaomi_Scale.py b/src/Xiaomi_Scale.py index 472a42e..dbaf26f 100644 --- a/src/Xiaomi_Scale.py +++ b/src/Xiaomi_Scale.py @@ -107,6 +107,7 @@ def discovery(): port=MQTT_PORT, auth={'username':MQTT_USERNAME, 'password':MQTT_PASSWORD} ) + sys.stdout.write(f"{datetime.now().strftime('%Y-%m-%d %H:%M:%S')} - Discovery Completed...\n") class ScanProcessor():