Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/pip/dot-github/workflows/pre-comm…
Browse files Browse the repository at this point in the history
…it-3.5.0
  • Loading branch information
valleedelisle authored Oct 16, 2023
2 parents 2a84f81 + 52a79b9 commit 8d28cd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
black==23.9.1
pip==23.2.1
pre-commit==3.5.0
pip==23.3
flake8==6.1.0
reorder-python-imports==3.12.0
3 changes: 2 additions & 1 deletion custom_components/hilo/sensor.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ class EnergySensor(IntegrationSensor):

def __init__(self, device):
self._device = device
self._attr_name = f"hilo_energy_{slugify(device.name)}"
self._attr_name = f"Hilo Energy {slugify(device.name)}"
self._attr_unique_id = f"hilo_energy_{slugify(device.name)}"
self._unit_of_measurement = ENERGY_WATT_HOUR
self._unit_prefix = None
if device.type == "Meter":
Expand Down

0 comments on commit 8d28cd4

Please sign in to comment.