I want to rename a Switch.
I want to add something like
self._update_attribute(
self.attributes_by_name["description"].id, "Child lock"
)
to
class ZONNSMARTChildLock(ZONNSMARTHelperOnOff):
"""On/Off cluster for the child lock of the heating thermostats."""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.endpoint.device.child_lock_bus.add_listener(self)
def get_attr_val_to_write(self, value):
return {ZONNSMART_CHILD_LOCK_ATTR: value}
But there is no “description” in this class.

