@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 self.type in "date":
            return "mdi:calendar"
        else:
            return "mdi:clock"
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/sensor/time_date.py/TimeDateSensor.icon/swapped operands of `in`