From f1d11e77ed7eb26e5de88599bdc1ddcabbd6037b Mon Sep 17 00:00:00 2001 From: Marcel030nl Date: Thu, 24 Nov 2016 09:58:38 +0100 Subject: [PATCH] Update pvoutput.py (#4557) This addition could be usefull when working with the template sensor using the data of this sensor. --- homeassistant/components/sensor/pvoutput.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/sensor/pvoutput.py b/homeassistant/components/sensor/pvoutput.py index e0581926a32..7ee7cbe3969 100644 --- a/homeassistant/components/sensor/pvoutput.py +++ b/homeassistant/components/sensor/pvoutput.py @@ -98,6 +98,7 @@ class PvoutputSensor(Entity): """Return the state attributes of the Pi-Hole.""" if self.pvcoutput is not None: return { + ATTR_ENERGY_GENERATION: self.pvcoutput.energy_generation, ATTR_POWER_GENERATION: self.pvcoutput.power_generation, ATTR_ENERGY_CONSUMPTION: self.pvcoutput.energy_consumption, ATTR_POWER_CONSUMPTION: self.pvcoutput.power_consumption,