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

Update the name of Zestimate sensors #23770

Merged
merged 5 commits into from May 24, 2019
Merged

Update the name of Zestimate sensors #23770

merged 5 commits into from May 24, 2019

Conversation

dreed47
Copy link
Contributor

@dreed47 dreed47 commented May 9, 2019

Breaking Change:

This is a breaking change as it will change entity_id of Zestimate sensors. If you have automations relying on your Zestimate sensor(s) you may need to revisit them to fix the ID's to the new ones. Also, you may need to update your Zestimate sensor(s) in your Lovelace UI.

Description:

Changed name property to return Zestimate
and the property address. This will make it easier
to distinguish multiple Zestimate sensor entities
in the UI.

Also removed MIN_TIME_BETWEEN_UPDATES in
favor of SCAN_INTERVAL per suggestion from
amelchio#9580 on Discord

Related issue (if applicable): fixes #
fixes #23757

Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#<home-assistant.io PR number goes here>

Example entry for configuration.yaml (if applicable):

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt by running python3 -m script.gen_requirements_all.
  • Untested files have been added to .coveragerc.

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

@Kane610
Copy link
Member

Kane610 commented May 9, 2019

Wouldn't this be a breaking change? Entities would get new ids

@dreed47
Copy link
Contributor Author

dreed47 commented May 9, 2019

Wouldn't this be a breaking change? Entities would get new ids

It didn't break mine when I was testing. It just renamed them. What determines what ID's get assigned?

@Kane610
Copy link
Member

Kane610 commented May 9, 2019

If the entity id change its a breaking change. If entities has unique id it would keep the same if regardless of name

@dreed47
Copy link
Contributor Author

dreed47 commented May 9, 2019

If the entity id change its a breaking change. If entities has unique id it would keep the same if regardless of name

yes it is a breaking change. I updated the pull pull request to indicate it.

thx

Copy link
Member

@andrewsayre andrewsayre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also rewrite the breaking changes description from the end-user's point of view -- what does this mean to them and what must they do change.

homeassistant/components/zestimate/sensor.py Outdated Show resolved Hide resolved
@balloob
Copy link
Member

balloob commented May 9, 2019

It's not a breaking change if entities have a unique ID.

@andrewsayre
Copy link
Member

@balloob they don’t have a unique id, there’s a previous PR to add it.

Changed name property to return Zestimate
and the property address.  This will make it easier
distinguish multiple Zestimate sensor entities
in the UI.

Also removed MIN_TIME_BETWEEN_UPDATES in
favor of SCAN_INTERVAL per suggestion from
amelchio#9580 on Discord
Changed name property to return Zestimate
and the property address.  This will make it easier
distinguish multiple Zestimate sensor entities
in the UI.
and the property address.  This will make it easier
distinguish multiple Zestimate sensor entities
in the UI.
@fabaff fabaff changed the title Zestimate: fix for issue #23757 Update the name of Zestimate sensors May 24, 2019
@fabaff fabaff dismissed andrewsayre’s stale review May 24, 2019 13:55

Comment addressed

@fabaff fabaff merged commit 0a9a8ec into home-assistant:dev May 24, 2019
@balloob balloob mentioned this pull request Jun 4, 2019
alandtse pushed a commit to alandtse/home-assistant that referenced this pull request Oct 12, 2019
* Zestimate: fix for issue home-assistant#23757
Changed name property to return Zestimate
and the property address.  This will make it easier
distinguish multiple Zestimate sensor entities
in the UI.

Also removed MIN_TIME_BETWEEN_UPDATES in
favor of SCAN_INTERVAL per suggestion from
amelchio#9580 on Discord

* Zestimate fix for issue home-assistant#23757

Changed name property to return Zestimate
and the property address.  This will make it easier
distinguish multiple Zestimate sensor entities
in the UI.

* Changed name property to return Zestimate
and the property address.  This will make it easier
distinguish multiple Zestimate sensor entities
in the UI.

* moved code fix to the correct function

* removed code change from unique_id function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zestimate: component should set sensor names to address
6 participants