Skip to content

Commit

Permalink
0.1.6.b10
Browse files Browse the repository at this point in the history
  • Loading branch information
hakana committed Feb 3, 2020
1 parent a529c09 commit 3f5b3ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions custom_components/shelly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3f5b3ac

Please sign in to comment.