myTselection / Carbu_com

Actual fuel prices (super, diesel, lpg) per gasstation supported for Belgium, France, Luxembourg, Spain, Netherlands, Germany, Italy and US! Home Assistant custom component HACS integration for BE/FR/LU based on carbu.com and mazout.com site to compare and save on your actual fuel oil/heating oil (mazout) and fuel (diesel, super and lpg) purchases.
MIT License
23 stars 6 forks source link

Trying to adjust radius #21

Closed groosman closed 1 year ago

groosman commented 1 year ago

Thanks for this great integration. I use carbu.com quite often, nice to have it integrated in HA for further automation possibilities.

I would like to adjust the radius to 10 & 20 km. So I tried in sensor.py to change:

sensorSuper95Neigh = ComponentPriceNeighborhoodSensor(componentData, FuelType.SUPER95, postalcode, 5) to sensorSuper95Neigh = ComponentPriceNeighborhoodSensor(componentData, FuelType.SUPER95, postalcode, 10)

but I guess this would have been to simple.. in any case this action wasn't successful, any hints on how to adjust the radius?

Thinking further it would be a 'nice to have' add on for the integration to have this configuration option at the start. But no clue (yet) how to build this.

Again thanks a lot and keep up the good work!

groosman commented 1 year ago

rebooting did the trick...