mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Add plum_lightpad unique ids (#36549)
This commit is contained in:
parent
fbbc681ad4
commit
de7bbd3e24
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user