Skip to content

feat: Add raw_value to sensor attributes (Issue #40)#41

Merged
enoch85 merged 9 commits intomainfrom
feature/raw-value-issue-40
Oct 23, 2025
Merged

feat: Add raw_value to sensor attributes (Issue #40)#41
enoch85 merged 9 commits intomainfrom
feature/raw-value-issue-40

Conversation

@enoch85
Copy link
Copy Markdown
Owner

@enoch85 enoch85 commented Oct 23, 2025

  • Add raw market price alongside final consumer price in sensor attributes
  • CurrencyConverter now returns both raw and final prices
  • DataProcessor stores today_raw_prices and tomorrow_raw_prices
  • BaseElectricityPriceSensor includes raw_value in interval price attributes
  • Update tests to handle new 4-tuple return format
  • Fix test_entsoe_areas to allow DE/DE-LU duplicate EIC code
  • Update documentation with raw_value examples

Closes #40

Changes:

  • custom_components/ge_spot/price/currency_converter.py: Calculate raw prices
  • custom_components/ge_spot/coordinator/data_processor.py: Store raw prices
  • custom_components/ge_spot/sensor/base.py: Add raw_value to attributes
  • tests/pytest/unit/test_data_processor.py: Update test mocks
  • tests/pytest/unit/test_entsoe_areas.py: Allow DE/DE-LU duplicate
  • README.md: Document raw_value field
  • docs/raw_price_template.md: Update with new feature

All 241 unit tests passing

- Add raw market price alongside final consumer price in sensor attributes
- CurrencyConverter now returns both raw and final prices
- DataProcessor stores today_raw_prices and tomorrow_raw_prices
- BaseElectricityPriceSensor includes raw_value in interval price attributes
- Update tests to handle new 4-tuple return format
- Fix test_entsoe_areas to allow DE/DE-LU duplicate EIC code
- Update documentation with raw_value examples

Closes #40

Changes:
- custom_components/ge_spot/price/currency_converter.py: Calculate raw prices
- custom_components/ge_spot/coordinator/data_processor.py: Store raw prices
- custom_components/ge_spot/sensor/base.py: Add raw_value to attributes
- tests/pytest/unit/test_data_processor.py: Update test mocks
- tests/pytest/unit/test_entsoe_areas.py: Allow DE/DE-LU duplicate
- README.md: Document raw_value field
- docs/raw_price_template.md: Update with new feature

All 241 unit tests passing
@enoch85 enoch85 marked this pull request as ready for review October 23, 2025 17:44
@enoch85 enoch85 merged commit 4713e81 into main Oct 23, 2025
13 of 14 checks passed
@enoch85 enoch85 deleted the feature/raw-value-issue-40 branch October 23, 2025 17:44
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.

Feature request: add raw value

1 participant