mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Add unique_id support to Somfy MyLink (#36232)
This commit is contained in:
parent
db9900cf50
commit
39f2d4cb5a
@ -46,7 +46,7 @@ class SomfyShade(CoverEntity):
|
||||
def __init__(
|
||||
self,
|
||||
somfy_mylink,
|
||||
target_id="AABBCC",
|
||||
target_id,
|
||||
name="SomfyShade",
|
||||
reverse=False,
|
||||
device_class="window",
|
||||
@ -58,6 +58,11 @@ class SomfyShade(CoverEntity):
|
||||
self._reverse = reverse
|
||||
self._device_class = device_class
|
||||
|
||||
@property
|
||||
def unique_id(self):
|
||||
"""Return the unique ID of this cover."""
|
||||
return self._target_id
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Return the name of the cover."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user