Merge pull request #1225 from nkgilley/ecobee-fix

fix ecobee sensor unique id.
pull/1182/head
Paulus Schoutsen 2016-02-12 18:53:58 -08:00
commit 223b7f85ee
1 changed files with 1 additions and 1 deletions

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):