From cc807c7a76708691888e134ba5e190f4d646f1d0 Mon Sep 17 00:00:00 2001 From: 5high <5high.net@gmail.com> Date: Sun, 10 Jan 2021 19:09:58 +0800 Subject: [PATCH] Update Xiaomi_Scale.py --- mi-scale/src/Xiaomi_Scale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mi-scale/src/Xiaomi_Scale.py b/mi-scale/src/Xiaomi_Scale.py index 6bbbe44..f56b662 100644 --- a/mi-scale/src/Xiaomi_Scale.py +++ b/mi-scale/src/Xiaomi_Scale.py @@ -192,7 +192,7 @@ OLD_MEASURE = '' def discovery(): for MQTTUser in (USER1_NAME,USER2_NAME,USER3_NAME): - message = '{"name": "' + MQTTUser + ' Weight",' + message = '{"name": "' + MQTTUser + ' 体重",' message+= '"state_topic": "' + MQTT_PREFIX + '/' + MQTTUser + '/weight","value_template": "{{ value_json.重量 }}",' message+= '"json_attributes_topic": "' + MQTT_PREFIX + '/' + MQTTUser + '/weight","icon": "mdi:scale-bathroom"}' publish.single(