From 39ba83d41d0ed2cb94eeef7f72ae3d3628e01f91 Mon Sep 17 00:00:00 2001 From: Duco Sebel <74970928+DCSBL@users.noreply.github.com> Date: Tue, 3 Aug 2021 16:10:31 +0200 Subject: [PATCH] Bumb aiohwenergy to 0.1.0 --- .../homewizard_energy/manifest.json | 18 +++++++++++++----- custom_components/homewizard_energy/sensor.py | 2 ++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/custom_components/homewizard_energy/manifest.json b/custom_components/homewizard_energy/manifest.json index 43d900f..6b88415 100644 --- a/custom_components/homewizard_energy/manifest.json +++ b/custom_components/homewizard_energy/manifest.json @@ -4,10 +4,18 @@ "version": "0.8.0", "documentation": "https://github.com/DCSBL/ha-homewizard-energy", "issue_tracker": "https://github.com/DCSBL/ha-homewizard-energy/issues", - "codeowners": ["@DCSBL"], - "dependencies": ["zeroconf"], - "requirements": ["aiohwenergy==0.0.5"], - "zeroconf": ["_hwenergy._tcp.local."], + "codeowners": [ + "@DCSBL" + ], + "dependencies": [ + "zeroconf" + ], + "requirements": [ + "aiohwenergy==0.1.0" + ], + "zeroconf": [ + "_hwenergy._tcp.local." + ], "config_flow": true, "iot_class": "local_polling" -} +} \ No newline at end of file diff --git a/custom_components/homewizard_energy/sensor.py b/custom_components/homewizard_energy/sensor.py index e084a78..5378fa4 100644 --- a/custom_components/homewizard_energy/sensor.py +++ b/custom_components/homewizard_energy/sensor.py @@ -22,6 +22,7 @@ PERCENTAGE, POWER_WATT, VOLUME_CUBIC_METERS, + DEVICE_CLASS_TIMESTAMP ) from homeassistant.exceptions import ConfigEntryNotReady from homeassistant.helpers.update_coordinator import ( @@ -157,6 +158,7 @@ key=ATTR_GAS_TIMESTAMP, name="Gas timestamp", icon="mdi:timeline-clock", + device_class=DEVICE_CLASS_TIMESTAMP ), ]