'Update the attributes containing solar events.'

@callback
def update_as_of(self, utc_point_in_time):

    self.next_dawn = get_astral_event_next(self.hass, 'dawn', utc_point_in_time)
    self.next_dusk = get_astral_event_next(self.hass, 'dusk', utc_point_in_time)
    self.next_midnight = get_astral_event_next(self.hass, 'solar_midnight', utc_point_in_time)
    self.next_noon = get_astral_event_next(self.hass, 'solar_noon', utc_point_in_time)
    self.next_rising = get_astral_event_next(self.hass, 'sunrise', utc_point_in_time)
    self.next_setting = get_astral_event_next(self.hass, 'sunset', utc_point_in_time)
