fill in missing gaps with previous state
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user