@property
def name(self) -> (str | None):
    'Return the name of the entity.'
    if hasattr(self, '_attr_name'):
        return self._attr_name
    if hasattr(self, 'entity_description'):
        return self.entity_description.name
    return None
Return the name of the entity.
@property
def name(self) -> (str | None):
    
    if hasattr(self, '_attr_name'):
        return self._attr_name
    if hasattr(self, 'entity_description'):
        return self.entity_description.name
    return None