Add unique_id support to Somfy MyLink (#36232)

This commit is contained in:
Kumar Gala 2020-05-30 17:48:38 -05:00 committed by GitHub
parent db9900cf50
commit 39f2d4cb5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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."""