fill in missing gaps with previous state

This commit is contained in:
Adam Outler
2022-01-01 12:17:37 -05:00
parent ba77a5e2c2
commit 0b4f5abb5b
9 changed files with 159 additions and 61 deletions

View File

@@ -13,11 +13,11 @@ class AllDataSensor(FplEntity):
if budget == True and budget_billing_projected_bill is not None:
return self.getData("budget_billing_projected_bill")
return self.getData("projected_bill")
def defineAttributes(self):
"""Return the state attributes."""
return self.coordinator.data.get(self.account)
try:
self._state=self.getData("projected_bill")
except:
pass
return self._state
@property
def icon(self):