Fix TDBU naming in Motionblinds (#110283)

fix TDBU naming
This commit is contained in:
starkillerOG 2024-02-11 21:16:06 +01:00 committed by GitHub
parent 7ce1ba9304
commit 589e3952de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -400,6 +400,7 @@ class MotionTDBUDevice(MotionPositionDevice):
def __init__(self, coordinator, blind, device_class, motor):
"""Initialize the blind."""
super().__init__(coordinator, blind, device_class)
delattr(self, "_attr_name")
self._motor = motor
self._motor_key = motor[0]
self._attr_translation_key = motor.lower()