From 6b3d13e09280d76b8ca24642bae3aaea93b0116c Mon Sep 17 00:00:00 2001 From: Greg Date: Sat, 19 Feb 2022 12:58:36 +0800 Subject: [PATCH] Update __init__.py fixed Unit of Measurement for DC current. --- custom_components/sems2mqtt/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/sems2mqtt/__init__.py b/custom_components/sems2mqtt/__init__.py index d7cd1f9..2eb7e48 100644 --- a/custom_components/sems2mqtt/__init__.py +++ b/custom_components/sems2mqtt/__init__.py @@ -318,7 +318,7 @@ def create_device(model): } payload_dc_current_str_1 = { 'name':'sems_str_1_current', - 'unit_of_meas':'VDC', + 'unit_of_meas':'IDC', 'value_template':'{{ value_json.dc_current_str_1 }}', 'icon':'mdi:current-dc', 'state_topic':'sems/sensors', @@ -340,7 +340,7 @@ def create_device(model): } payload_dc_current_str_2 = { 'name':'sems_str_2_current', - 'unit_of_meas':'VDC', + 'unit_of_meas':'IDC', 'value_template':'{{ value_json.dc_current_str_2 }}', 'icon':'mdi:current-dc', 'state_topic':'sems/sensors',