@property
def icon(self):
    'Icon to use in the frontend, if any.'
    if (('date' in self.type) and ('time' in self.type)):
        return 'mdi:calendar-clock'
    elif ('date' in self.type):
        return 'mdi:calendar'
    else:
        return 'mdi:clock'
Icon to use in the frontend, if any.
@property
def icon(self):
    
    if (('date' in self.type) and ('time' in self.type)):
        return 'mdi:calendar-clock'
    elif ('date' in self.type):
        return 'mdi:calendar'
    else:
        return 'mdi:clock'