From 3b5a6c2c975f035071a3498945fece21b4283913 Mon Sep 17 00:00:00 2001 From: snaky69 <108159253+ic-dev21@users.noreply.github.com> Date: Sun, 15 Oct 2023 11:33:49 -0400 Subject: [PATCH 1/2] =?UTF-8?q?Ajout=20du=20unique=5Fid=20au=20sensor=20d'?= =?UTF-8?q?=C3=A9nergie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Permettrait possiblement d'arranger #281 Comme ils n'avaient pas de uniqueid il n'arrivaient pas à se populer. Les autres sensors (température, power, etc.) avait leur unique id et étaient fonctionnels. --- custom_components/hilo/sensor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 custom_components/hilo/sensor.py diff --git a/custom_components/hilo/sensor.py b/custom_components/hilo/sensor.py old mode 100644 new mode 100755 index 13f2835..fd1df8e --- a/custom_components/hilo/sensor.py +++ b/custom_components/hilo/sensor.py @@ -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": From 819d2de10decdb81c5c79cb4a9e913954a092711 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Oct 2023 08:45:24 +0000 Subject: [PATCH 2/2] Bump pip from 23.2.1 to 23.3 in /.github/workflows Bumps [pip](https://github.com/pypa/pip) from 23.2.1 to 23.3. - [Changelog](https://github.com/pypa/pip/blob/main/NEWS.rst) - [Commits](https://github.com/pypa/pip/compare/23.2.1...23.3) --- updated-dependencies: - dependency-name: pip dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/constraints.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/constraints.txt b/.github/workflows/constraints.txt index aa32871..ab1c605 100644 --- a/.github/workflows/constraints.txt +++ b/.github/workflows/constraints.txt @@ -1,5 +1,5 @@ black==23.9.1 -pip==23.2.1 +pip==23.3 pre-commit==3.4.0 flake8==6.1.0 reorder-python-imports==3.12.0