Skip to content

Commit

Permalink
8.1.0 add date of prediction, #36
Browse files Browse the repository at this point in the history
  • Loading branch information
myTselection committed Nov 3, 2023
1 parent 7f1f170 commit 76c4a8d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/carbu_com/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/myTselection/carbu_com/issues",
"requirements": ["bs4","requests","ratelimit"],
"version": "8.0.0"
"version": "8.1.0"
}
4 changes: 2 additions & 2 deletions custom_components/carbu_com/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,9 +671,9 @@ async def async_update(self):
priceinfo = self._data._price_info.get(self._fueltype)


self._trend = round(priceinfo,3)
self._trend = round( priceinfo[0],3)

self._date = self._data._lastupdate
self._date = priceinfo[1]



Expand Down
2 changes: 1 addition & 1 deletion custom_components/carbu_com/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ def getFuelPrediction(self, fueltype_prediction_code):
except:
_LOGGER.error(f"Carbu_com Prediction code {fueltype_prediction_code} could not be retrieved")

return value
return [value,categories[categoriesIndex-1]]

@sleep_and_retry
@limits(calls=1, period=1)
Expand Down

0 comments on commit 76c4a8d

Please # to comment.