Skip to content

Commit

Permalink
Fix for issue home-assistant#23739. Added unique_id property so (home…
Browse files Browse the repository at this point in the history
…-assistant#23769)

that entities will always get mapped to the same
property ZPID code.
  • Loading branch information
dreed47 authored and pvizeli committed May 10, 2019
1 parent 0caa270 commit e6c5cc9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions homeassistant/components/zestimate/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ def __init__(self, name, params):
self.data = None
self.address = None
self._state = None

@property
def unique_id(self):
"""Return the ZPID."""
return self.params['zpid']

@property
def name(self):
Expand Down

0 comments on commit e6c5cc9

Please sign in to comment.