Include proper calculation for budget billing

This commit is contained in:
Yordan Suarez
2020-08-28 13:56:38 -04:00
parent ed1e7160e3
commit 4e4cd3c633
2 changed files with 37 additions and 8 deletions

View File

@@ -87,8 +87,8 @@ class FplSensor(Entity):
if type(data) is dict:
if "budget_bill" in data.keys():
if data["budget_bill"]:
if "projected_budget_bill" in data.keys():
state = data["projected_budget_bill"]
if "budget_billing_projected_bill" in data.keys():
state = data["budget_billing_projected_bill"]
else:
if "projected_bill" in data.keys():
state = data["projected_bill"]