mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Update pvoutput.py (#4557)
This addition could be usefull when working with the template sensor using the data of this sensor.
This commit is contained in:
parent
b1b8715f7d
commit
f1d11e77ed
@ -98,6 +98,7 @@ class PvoutputSensor(Entity):
|
|||||||
"""Return the state attributes of the Pi-Hole."""
|
"""Return the state attributes of the Pi-Hole."""
|
||||||
if self.pvcoutput is not None:
|
if self.pvcoutput is not None:
|
||||||
return {
|
return {
|
||||||
|
ATTR_ENERGY_GENERATION: self.pvcoutput.energy_generation,
|
||||||
ATTR_POWER_GENERATION: self.pvcoutput.power_generation,
|
ATTR_POWER_GENERATION: self.pvcoutput.power_generation,
|
||||||
ATTR_ENERGY_CONSUMPTION: self.pvcoutput.energy_consumption,
|
ATTR_ENERGY_CONSUMPTION: self.pvcoutput.energy_consumption,
|
||||||
ATTR_POWER_CONSUMPTION: self.pvcoutput.power_consumption,
|
ATTR_POWER_CONSUMPTION: self.pvcoutput.power_consumption,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user