Fix unused friendly name for SolarEdge sensor#20109
Merged
pvizeli merged 1 commit intohome-assistant:devfrom Jan 18, 2019
Merged
Fix unused friendly name for SolarEdge sensor#20109pvizeli merged 1 commit intohome-assistant:devfrom
pvizeli merged 1 commit intohome-assistant:devfrom
Conversation
Contributor
houndci-bot
reviewed
Jan 14, 2019
75b57ae to
da24767
Compare
houndci-bot
reviewed
Jan 14, 2019
Contributor
Author
|
I'll try to test this soon.
I think this will change the generated keys as well ( |
da24767 to
0eca019
Compare
Member
|
This is a breaking change. Please verify how the entity_id will change for all sensor types, and update the documentation as necessary. |
Member
|
Please add a paragraph in the PR description about the breaking change for the release notes. |
0eca019 to
37dde23
Compare
Merged
2 tasks
Contributor
Author
|
To avoid confusion I've also changed the monitoring condition keys in the configuration to reflect the new sensor names. I've opened a PR for the documentation and noted breaking changes in this PR. |
MartinHjelmare
approved these changes
Jan 16, 2019
37dde23 to
b4d2ce1
Compare
Member
|
Great! Can be merged when build passes. |
Merged
alandtse
pushed a commit
to alandtse/home-assistant
that referenced
this pull request
Feb 12, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
The SolarEdge component currently creates sensors named like
SolarEdge_current_powerin the front end, while an unused array containing friendly names exists in the code. This PR uses this array to set a friendly name.Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#8193
Checklist:
tox. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
REQUIREMENTSvariable (example).requirements_all.txtby runningscript/gen_requirements_all.py..coveragerc.If the code does not interact with devices:
Breaking changes:
This PR changes the entity names of this sensor and the monitoring condition keys in the configuration:
sensor.solaredge_current_powersensor.solaredge_current_powersensor.solaredge_last_day_datasensor.solaredge_energy_todaysensor.solaredge_last_month_datasensor.solaredge_energy_this_monthsensor.solaredge_last_year_datasensor.solaredge_energy_this_yearsensor.solaredge_life_time_datasensor.solaredge_lifetime_energy