Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Comment cleanup
  • Loading branch information
ic-dev21 committed May 3, 2024
1 parent b3cca0c commit aad1143
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/hilo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,11 +607,11 @@ def check_tarif(self):
for state in self._hass.states.async_all():
entity = state.entity_id
if entity.endswith("hilo_rate_current"):
# LOG.debug(f"591: check_tarif {entity} abort loop")
continue

if self.generate_energy_meters:
# LOG.debug(f"594: check_tarif {entity} set tarif call")
self.set_tarif(entity, state.state, tarif)

if entity.endswith("_power") and entity not in [
unknown_source_tracker,
smart_meter,
Expand Down Expand Up @@ -657,7 +657,7 @@ def fix_utility_sensor(self, entity, state):
"""not sure why this doesn't get created with a proper device_class"""
current_state = state.as_dict()
attrs = current_state.get("attributes", {})
if entity.startswith("select.") or entity.find("hilo_rate") > 0: # fix mig
if entity.startswith("select.") or entity.find("hilo_rate") > 0:
return
if not attrs.get("source"):
LOG.debug(f"No source entity defined on {entity}: {current_state}")
Expand Down

0 comments on commit aad1143

Please sign in to comment.