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

Renamed "off peak <num>" to "off_peak_<num>" #98

Merged
merged 1 commit into from
Dec 30, 2021

Conversation

rasssta
Copy link
Contributor

@rasssta rasssta commented Dec 23, 2021

Renamed attributes "off peak num" to "off_peak_num" to be able to use the attributes easier in templates and to match the naming of current_price which uses underscore instead of whitespace.

Example: {{ states.sensor.nordpool_kwh_se3_sek_3_10_025.attributes.off_peak_2 }}

Also, at the moment with whitespaces I can't read the values from InfluxDB to Grafana. But this fix would solve that issue.

Renamed attributes "off peak <num>" to "off_peak_<num>" to be able to use the attributes easier in templates.

Example: {{ states.sensor.nordpool_kwh_se3_sek_3_10_025.attributes.off_peak_2 }}
@Hellowlol
Copy link
Collaborator

Looks good! Thanks for your contribution 👍

@rasssta
Copy link
Contributor Author

rasssta commented Dec 27, 2021

How about merging it then? ;-)

@Hellowlol Hellowlol merged commit 685e726 into custom-components:master Dec 30, 2021
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