From 7975aa6185d2c30104909b9c3a14fc1ae021bfe2 Mon Sep 17 00:00:00 2001 From: magico13 Date: Wed, 25 Dec 2024 13:41:36 -0500 Subject: [PATCH] Allow merged to be bidirectional --- custom_components/emporia_vue/__init__.py | 3 ++- custom_components/emporia_vue/manifest.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/custom_components/emporia_vue/__init__.py b/custom_components/emporia_vue/__init__.py index 7ef02fd..9c894ff 100644 --- a/custom_components/emporia_vue/__init__.py +++ b/custom_components/emporia_vue/__init__.py @@ -472,8 +472,9 @@ async def parse_flattened_usage_data( fixed_usage, ) + bidirectional = "bidirectional" in info_channel.type.lower() or "merged" in info_channel.type.lower() fixed_usage = fix_usage_sign( - channel_num, fixed_usage, "bidirectional" in info_channel.type.lower() + channel_num, fixed_usage, bidirectional ) data[identifier] = { diff --git a/custom_components/emporia_vue/manifest.json b/custom_components/emporia_vue/manifest.json index 08654bf..84adc50 100644 --- a/custom_components/emporia_vue/manifest.json +++ b/custom_components/emporia_vue/manifest.json @@ -11,6 +11,6 @@ "issue_tracker": "https://github.com/magico13/ha-emporia-vue/issues", "requirements": ["pyemvue==0.18.6"], "ssdp": [], - "version": "0.10.0", + "version": "0.10.1", "zeroconf": [] }