Skip to content

Commit

Permalink
Using meter name as unique key instead of entity
Browse files Browse the repository at this point in the history
fixes #75
  • Loading branch information
valleedelisle committed Feb 3, 2022
1 parent 88863c5 commit 61c8883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/hilo/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def add_meter_entity(self, entity, tariff_list):
for tarif in tariff_list:
name = f"{entity}_{self.period}"
LOG.debug(f"Creating UtilityMeter entity: {name} {tarif}")
self.meter_entities[entity] = {
self.meter_entities[name] = {
"meter": entity,
"name": f"{name} {tarif}",
"tariff": tarif,
Expand Down

0 comments on commit 61c8883

Please sign in to comment.