get back fpl original folder

This commit is contained in:
Yordan Suarez
2022-07-21 20:55:06 -04:00
parent cc610ab3e1
commit 25b5966dcb
22 changed files with 512 additions and 1458 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"