Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: template_value was made positive if price was negative #317

Merged
merged 1 commit into from
Apr 30, 2023

Conversation

ljungqvist
Copy link
Contributor

I couldn't figure out the reason for abs(template_value).
I have a template evaluating to -0.002 and when the electricity price is -0.00092 the final price evaluates to 0.00108. I would expect it to be -0.00292.

@Hellowlol
Copy link
Collaborator

I cant remember the reason for putting that in

@Hellowlol Hellowlol merged commit 75a2d89 into custom-components:master Apr 30, 2023
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