temporal fpl1 folder

This commit is contained in:
Yordan Suarez
2022-07-21 20:43:14 -04:00
parent 5e0cf5f659
commit e410106391
16 changed files with 2 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
from .fplEntity import FplEntity
import pprint
class TestSensor(FplEntity):
def __init__(self, coordinator, config, account):
super().__init__(coordinator, config, account, "Test Sensor")
@property
def state(self):
pprint.pprint(self.coordinator.data)
return self.getData("projected_bill")
def defineAttributes(self):
"""Return the state attributes."""
attributes = {}
try:
if self.getData("budget_bill"):
attributes["budget_bill"] = self.getData("budget_bill")
except:
pass
return attributes
@property
def icon(self):
return "mdi:currency-usd"