@property
def icon(self) -> (str | None):
    'Return the icon to use in the frontend, if any.'
    if hasattr(self, '_attr_icon'):
        return self._attr_icon
    if hasattr(self, 'entity_description'):
        return self.entity_description.icon
    return None
Return the icon to use in the frontend, if any.
@property
def icon(self) -> (str | None):
    
    if hasattr(self, '_attr_icon'):
        return self._attr_icon
    if hasattr(self, 'entity_description'):
        return self.entity_description.icon
    return None