From 4840dd297a84369eed6a609193c3d781d86476b2 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 8 Feb 2016 20:39:09 -0800 Subject: [PATCH] Add unique ID to ecobee sensor --- homeassistant/components/sensor/ecobee.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/homeassistant/components/sensor/ecobee.py b/homeassistant/components/sensor/ecobee.py index 0b55c179139..ca22fb44a75 100644 --- a/homeassistant/components/sensor/ecobee.py +++ b/homeassistant/components/sensor/ecobee.py @@ -63,6 +63,11 @@ class EcobeeSensor(Entity): """ Returns the state of the device. """ return self._state + @property + def unique_id(self): + """Unique id of this sensor.""" + return "sensor_ecobee_{}_{}".format(self.type, self.index) + @property def unit_of_measurement(self): """ Unit of measurement this sensor expresses itself in. """