pantherale0 / ha-fuelprices

A generic and extensible integration with pyfuelprices to retrieve local (or remote) fuel price data.
MIT License
16 stars 2 forks source link

Include area as sensor attribute. #12

Closed C4-Dimitri closed 2 months ago

C4-Dimitri commented 6 months ago

Checklist

Is your feature request related to a problem? Please describe.

Currently it is impossible to filter the sensors created by the area that was defined that included them.

Describe the solution you'd like

Include the area as an attribute of the created sensor.

Describe alternatives you've considered

allow multiple services to be created for different areas

Additional context

Realise that the attribute solution may have problems when sensors are created from overlapping areas.

pantherale0 commented 4 months ago

Hi,

This would be difficult to implement at the moment, will require some changes in the module as the area is not passed into search queries.

pantherale0 commented 2 months ago

Added for next release

image