Fix broadlink creating duplicate unique IDs (2) (#53622)

This commit is contained in:
Felipe Martins Diel 2021-07-28 13:53:34 -03:00 committed by GitHub
parent 4df56bad9e
commit 419bcd939b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,7 +146,6 @@ class BroadlinkSwitch(BroadlinkEntity, SwitchEntity, RestoreEntity, ABC):
self._attr_assumed_state = True
self._attr_device_class = DEVICE_CLASS_SWITCH
self._attr_name = f"{device.name} Switch"
self._attr_unique_id = device.unique_id
async def async_added_to_hass(self):
"""Call when the switch is added to hass."""