From b1b3079d0767a15c9f679b90222f2f7003a8d6f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hjelseth=20H=C3=B8yer?= Date: Thu, 16 Dec 2021 12:15:40 +0100 Subject: [PATCH] Add Tibber estimated hour consumption sensor (#62003) --- homeassistant/components/tibber/manifest.json | 2 +- homeassistant/components/tibber/sensor.py | 6 ++++++ requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/tibber/manifest.json b/homeassistant/components/tibber/manifest.json index c0b047a2856..8c7a49256df 100644 --- a/homeassistant/components/tibber/manifest.json +++ b/homeassistant/components/tibber/manifest.json @@ -2,7 +2,7 @@ "domain": "tibber", "name": "Tibber", "documentation": "https://www.home-assistant.io/integrations/tibber", - "requirements": ["pyTibber==0.21.1"], + "requirements": ["pyTibber==0.21.4"], "codeowners": ["@danielhiversen"], "quality_scale": "silver", "config_flow": true, diff --git a/homeassistant/components/tibber/sensor.py b/homeassistant/components/tibber/sensor.py index 0958996bfee..9bc7502e9c2 100644 --- a/homeassistant/components/tibber/sensor.py +++ b/homeassistant/components/tibber/sensor.py @@ -88,6 +88,12 @@ RT_SENSORS: tuple[SensorEntityDescription, ...] = ( native_unit_of_measurement=ENERGY_KILO_WATT_HOUR, state_class=SensorStateClass.TOTAL_INCREASING, ), + SensorEntityDescription( + key="estimatedHourConsumption", + name="Estimated consumption current hour", + device_class=SensorDeviceClass.ENERGY, + native_unit_of_measurement=ENERGY_KILO_WATT_HOUR, + ), SensorEntityDescription( key="accumulatedProduction", name="accumulated production", diff --git a/requirements_all.txt b/requirements_all.txt index 487a07c1732..e4bfa5a9610 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1336,7 +1336,7 @@ pyRFXtrx==0.27.0 # pySwitchmate==0.4.6 # homeassistant.components.tibber -pyTibber==0.21.1 +pyTibber==0.21.4 # homeassistant.components.dlink pyW215==0.7.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index a6bf1e345a9..0774c842fd6 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -817,7 +817,7 @@ pyMetno==0.9.0 pyRFXtrx==0.27.0 # homeassistant.components.tibber -pyTibber==0.21.1 +pyTibber==0.21.4 # homeassistant.components.nextbus py_nextbusnext==0.1.5