This commit is contained in:
lolouk44 2020-07-01 23:52:57 +01:00
parent c5b64862b7
commit 6a7225f32d
4 changed files with 9 additions and 1 deletions

View File

@ -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).

View File

@ -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

View File

@ -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",

View File

@ -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():