github pantherale0/ha-fuelprices 2024.1.0

latest releases: 2024.7.2, 2024.7.1, 2024.7.0...
8 months ago

Happy new year!

For the first release of the year, I've introduced a number of new data sources and lots of performance improvements.

pyfuelprices 2.1

Firstly though, the underlying module (pyfuelprices) has been increased to version 2.1.5, to summarize the changes:

  • Add support for Fuel Watch (Australia)
  • Add support for Tanker Koenig (Germany)
  • Add support for DirectLease TankerService, without OCR! (Belgium, Netherlands)
  • Add support for GasBuddy (USA)
  • Add support for Spritpreisrechner (Austria)
  • Enable Ascona data source (UK)
  • Lookup coordinates via external libraries and sources to identify country / state / postcode. This data is also used to improve performance while executing a query so we don't end up querying data sources not relevant to the coordinates provided.
  • A change was made in earlier versions of this library to use KDTree's for fast geospatial searches and sorting, however it seems this isn't supported in Home Assistant so this change has been disabled until such time it can be enabled again.
  • Setting recommended update interval is supported (some data sources will override this behaviour to limit the number of requests sent to their APIs. It is recommended to leave this as default (1 day). By design, the minimum update interval is every 2 hours.
  • Setting timeout is supported, defaults to 10 seconds, you may need to increase this if you have a slow connection.

The library was also completely rewritten to account for the new fuel location sources as its unlikely providers will hand us all the data in one go (unlike what the CMA does in the UK currently).

ha-fuelprices 2024.1.0

Last, this version of ha-fuelprices simply adds the required dependencies for the above changes, a number of backend methods have been rewritten to account for the changes in pyfuelprices 2.0+. I've also added the ability to reconfigure the integration after it has been configured.

Full Changelog: 2023.12.1...2024.1.0

Don't miss a new ha-fuelprices release

NewReleases is sending notifications on new releases.