mirror of
https://github.com/home-assistant/core.git
synced 2026-10-10 16:43:26 +01:00
Add plum_lightpad unique ids (#36549)
This commit is contained in:
1 parent
fbbc681ad4
commit
de7bbd3e24
1 file changed
+10
@@ -54,6 +54,11 @@ class PlumLight(LightEntity):
|
||||
"""No polling needed."""
|
||||
return False
|
||||
|
||||
@property
|
||||
def unique_id(self):
|
||||
"""Combine logical load ID with .light to guarantee it is unique."""
|
||||
return f"{self._load.llid}.light"
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Return the name of the switch if any."""
|
||||
@@ -130,6 +135,11 @@ class GlowRing(LightEntity):
|
||||
"""No polling needed."""
|
||||
return False
|
||||
|
||||
@property
|
||||
def unique_id(self):
|
||||
"""Combine LightPad ID with .glow to guarantee it is unique."""
|
||||
return f"{self._lightpad.lpid}.glow"
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Return the name of the switch if any."""
|
||||
|
||||
Reference in new issue
Block a user