Skip to content

Add IMPORT_MULTIPLIER to cache invalidation triggers#63

Closed
Copilot wants to merge 2 commits intofeature/export-pricesfrom
copilot/sub-pr-62
Closed

Add IMPORT_MULTIPLIER to cache invalidation triggers#63
Copilot wants to merge 2 commits intofeature/export-pricesfrom
copilot/sub-pr-62

Conversation

Copy link
Copy Markdown

Copilot AI commented Jan 29, 2026

The IMPORT_MULTIPLIER config key was missing from the price_affecting_settings list in the options flow. When users changed the import multiplier, cached prices remained calculated with the old multiplier value, displaying incorrect prices until cache expiration.

Changes

  • Added Config.IMPORT_MULTIPLIER to price_affecting_settings list in config_flow/options.py
  • Positioned before export settings section for logical grouping with other import price modifiers (VAT, tariffs, energy tax)

The import multiplier is applied during final price calculation in currency_converter.py and directly affects displayed prices, requiring cache invalidation on changes like other price-affecting settings.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: enoch85 <4511254+enoch85@users.noreply.github.com>
Copilot AI changed the title [WIP] WIP Address feedback on export price feature and code style improvements Add IMPORT_MULTIPLIER to cache invalidation triggers Jan 29, 2026
Copilot AI requested a review from enoch85 January 29, 2026 12:24
@enoch85 enoch85 closed this Jan 29, 2026
@enoch85 enoch85 deleted the copilot/sub-pr-62 branch January 29, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants