Remove unique ID from netatmo (#12317)
* Remove unique ID from netatmo * Shame platform in error message
This commit is contained in:
parent
f28fa7447e
commit
2e3524147c
4 changed files with 5 additions and 21 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue