Add unique_id support to Somfy MyLink (#36232)

This commit is contained in:
Kumar Gala authored and GitHub committed 2020-05-31 00:48:38 +02:00
1 parent db9900cf50
commit 39f2d4cb5a
1 file changed
+6 -1
@@ -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."""