From 3f5b3ac55efc00fee3fd7fa47254041a83fb1323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kan=20=C3=85kerberg?= Date: Mon, 3 Feb 2020 23:46:48 +0100 Subject: [PATCH] 0.1.6.b10 --- custom_components/shelly/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/custom_components/shelly/__init__.py b/custom_components/shelly/__init__.py index cec9257..feed440 100755 --- a/custom_components/shelly/__init__.py +++ b/custom_components/shelly/__init__.py @@ -170,6 +170,11 @@ async def start_up(self): entity.entity_id.endswith("_over_power_attr") \ ): entities_to_remove.append(entity.entity_id) + if entity.entity_id.startswith("sensor.") and \ + entity.entity_id.endswith("_consumption") and \ + not entity.entity_id.endswith("total_consumption") and \ + not entity.entity_id.endswith("current_consumption"): + entities_to_remove.append(entity.entity_id) if entity.entity_id.startswith("binary_sensor.") and \ entity.entity_id.endswith("_cloud_status_attr"): entities_to_remove.append(entity.entity_id)