Fix for issue #23739. Added unique_id property so (#23769)

that entities will always get mapped to the same
property ZPID code.
This commit is contained in:
dreed47 2019-05-09 23:18:28 -04:00 committed by Paulus Schoutsen
parent df6846344d
commit 281445917b

View File

@ -66,6 +66,11 @@ class ZestimateDataSensor(Entity):
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):