fix ecobee sensor unique id.

This commit is contained in:
nkgilley@gmail.com committed 2016-02-12 17:24:00 -05:00
1 parent 1ba60dc898
commit ba530e5a16
1 file changed
+1 -1
+1 -1
View File
@@ -66,7 +66,7 @@ class EcobeeSensor(Entity):
@property
def unique_id(self):
"""Unique id of this sensor."""
return "sensor_ecobee_{}_{}".format(self.type, self.index)
return "sensor_ecobee_{}_{}".format(self._name, self.index)
@property
def unit_of_measurement(self):