Remove unique ID from netatmo (#12317)

* Remove unique ID from netatmo

* Shame platform in error message
This commit is contained in:
Paulus Schoutsen 2018-02-11 19:33:37 -08:00 committed by GitHub
parent f28fa7447e
commit 2e3524147c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 21 deletions

View file

@ -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."""