Remove unique ID from netatmo (#12317)

* Remove unique ID from netatmo

* Shame platform in error message
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2018-02-11 19:33:37 -08:00
1 parent f28fa7447e
commit 2e3524147c
4 files changed
+5 -21

No files matched your search

@@ -113,18 +113,12 @@ class NetAtmoSensor(Entity):
module_id = self.netatmo_data.\
station_data.moduleByName(module=module_name)['_id']
self.module_id = module_id[1]
self._unique_id = '{}-{}'.format(self.module_id, self.type)
@property
def name(self):
"""Return the name of the sensor."""
return self._name
@property
def unique_id(self):
"""Return the unique ID for this sensor."""
return self._unique_id
@property
def icon(self):
"""Icon to use in the frontend, if any."""