mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Grammar fix 'an unique' (#12870)
This commit is contained in:
parent
a9d242a213
commit
e2e10b91a7
@ -214,7 +214,7 @@ class HikvisionBinarySensor(BinarySensorDevice):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def unique_id(self):
|
def unique_id(self):
|
||||||
"""Return an unique ID."""
|
"""Return a unique ID."""
|
||||||
return self._id
|
return self._id
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -70,5 +70,5 @@ class JuicenetDevice(Entity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def unique_id(self):
|
def unique_id(self):
|
||||||
"""Return an unique ID."""
|
"""Return a unique ID."""
|
||||||
return "{}-{}".format(self.device.id(), self.type)
|
return "{}-{}".format(self.device.id(), self.type)
|
||||||
|
@ -79,7 +79,7 @@ class AppleTvDevice(MediaPlayerDevice):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def unique_id(self):
|
def unique_id(self):
|
||||||
"""Return an unique ID."""
|
"""Return a unique ID."""
|
||||||
return self.atv.metadata.device_id
|
return self.atv.metadata.device_id
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -418,7 +418,7 @@ class CastDevice(MediaPlayerDevice):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def unique_id(self) -> str:
|
def unique_id(self) -> str:
|
||||||
"""Return an unique ID."""
|
"""Return a unique ID."""
|
||||||
if self.cast.uuid is not None:
|
if self.cast.uuid is not None:
|
||||||
return str(self.cast.uuid)
|
return str(self.cast.uuid)
|
||||||
return None
|
return None
|
||||||
|
@ -156,7 +156,7 @@ class OpenhomeDevice(MediaPlayerDevice):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def unique_id(self):
|
def unique_id(self):
|
||||||
"""Return an unique ID."""
|
"""Return a unique ID."""
|
||||||
return self._device.Uuid()
|
return self._device.Uuid()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -128,7 +128,7 @@ class SongpalDevice(MediaPlayerDevice):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def unique_id(self):
|
def unique_id(self):
|
||||||
"""Return an unique ID."""
|
"""Return a unique ID."""
|
||||||
return self._sysinfo.macAddr
|
return self._sysinfo.macAddr
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -367,7 +367,7 @@ class SonosDevice(MediaPlayerDevice):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def unique_id(self):
|
def unique_id(self):
|
||||||
"""Return an unique ID."""
|
"""Return a unique ID."""
|
||||||
return self._unique_id
|
return self._unique_id
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -230,7 +230,7 @@ class SqueezeBoxDevice(MediaPlayerDevice):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def unique_id(self):
|
def unique_id(self):
|
||||||
"""Return an unique ID."""
|
"""Return a unique ID."""
|
||||||
return self._id
|
return self._id
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -45,7 +45,7 @@ class AppleTVRemote(remote.RemoteDevice):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def unique_id(self):
|
def unique_id(self):
|
||||||
"""Return an unique ID."""
|
"""Return a unique ID."""
|
||||||
return self._atv.metadata.device_id
|
return self._atv.metadata.device_id
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -106,6 +106,6 @@ class TibberSensor(Entity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def unique_id(self):
|
def unique_id(self):
|
||||||
"""Return an unique ID."""
|
"""Return a unique ID."""
|
||||||
home = self._tibber_home.info['viewer']['home']
|
home = self._tibber_home.info['viewer']['home']
|
||||||
return home['meteringPointData']['consumptionEan']
|
return home['meteringPointData']['consumptionEan']
|
||||||
|
@ -242,7 +242,7 @@ class XiaomiDevice(Entity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def unique_id(self) -> str:
|
def unique_id(self) -> str:
|
||||||
"""Return an unique ID."""
|
"""Return a unique ID."""
|
||||||
return self._unique_id
|
return self._unique_id
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -306,7 +306,7 @@ class Entity(entity.Entity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def unique_id(self) -> str:
|
def unique_id(self) -> str:
|
||||||
"""Return an unique ID."""
|
"""Return a unique ID."""
|
||||||
return self._unique_id
|
return self._unique_id
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -916,7 +916,7 @@ class ZWaveDeviceEntity(ZWaveBaseEntity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def unique_id(self):
|
def unique_id(self):
|
||||||
"""Return an unique ID."""
|
"""Return a unique ID."""
|
||||||
return self._unique_id
|
return self._unique_id
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -93,7 +93,7 @@ class Entity(object):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def unique_id(self) -> str:
|
def unique_id(self) -> str:
|
||||||
"""Return an unique ID."""
|
"""Return a unique ID."""
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user