From 3b105c415bb0d03f94a78a568674ee6f9c5e264b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hjelseth=20H=C3=B8yer?= Date: Mon, 23 Nov 2020 10:26:50 +0100 Subject: [PATCH] Mill Heater: Add support for Energy consumption (#43523) --- homeassistant/components/mill/climate.py | 2 ++ homeassistant/components/mill/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/mill/climate.py b/homeassistant/components/mill/climate.py index 67ed692691b..0bb94242d64 100644 --- a/homeassistant/components/mill/climate.py +++ b/homeassistant/components/mill/climate.py @@ -114,6 +114,8 @@ class MillHeater(ClimateEntity): "heating": self._heater.is_heating, "controlled_by_tibber": self._heater.tibber_control, "heater_generation": 1 if self._heater.is_gen1 else 2, + "consumption_today": self._heater.day_consumption, + "consumption_total": self._heater.total_consumption, } if self._heater.room: res["room"] = self._heater.room.name diff --git a/homeassistant/components/mill/manifest.json b/homeassistant/components/mill/manifest.json index 684be0479bd..d0faa1e2ed5 100644 --- a/homeassistant/components/mill/manifest.json +++ b/homeassistant/components/mill/manifest.json @@ -2,7 +2,7 @@ "domain": "mill", "name": "Mill", "documentation": "https://www.home-assistant.io/integrations/mill", - "requirements": ["millheater==0.3.4"], + "requirements": ["millheater==0.4.0"], "codeowners": ["@danielhiversen"], "config_flow": true } diff --git a/requirements_all.txt b/requirements_all.txt index 55f67ce2e92..918a0bd1122 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -943,7 +943,7 @@ mficlient==0.3.0 miflora==0.7.0 # homeassistant.components.mill -millheater==0.3.4 +millheater==0.4.0 # homeassistant.components.minio minio==4.0.9 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index bcea75282fa..d3ef6b7a0bc 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -468,7 +468,7 @@ meteofrance-api==0.1.1 mficlient==0.3.0 # homeassistant.components.mill -millheater==0.3.4 +millheater==0.4.0 # homeassistant.components.minio minio==4.0.9