JaccoR / hass-entso-e

Integration for Home Assistant to fetch day ahead energy prices from European countries via ENTSO-e Transparency Platform
159 stars 25 forks source link

Add support for multiple instances to integration. #42

Closed sfstar closed 1 year ago

sfstar commented 1 year ago

Add support for multiple instances of this integration. Since the original integration didn't have a prefix option this change will be a breaking change (since older setups won't have the prefix option in the .storage file for the entity). This could be guarded against by trying for the prefix and falling back to the original id configuration format if it's not available. However, since removing and re-adding the integration with no prefix doesn't destroy the historical data for the entity, I think it should be acceptable to not implement compatibility for situations before this feature was introduced. PR for issue: #36