docs: def _forecast_transform(f_d):
      """Get attribute dict from flattened forecast dict."""
      begins = f_d.get('localTimestamp', None)
      issued = f_d.get('issueTimestamp', None)
      solid_stars = f_d.get('solidRating', None)
      faded_stars = f_d.get('fadedRating', None)
      air_pressure = f_d.get('condition_pressure', None)
      unit_pressure = f_d.get('condition_unitPressure', None)
      air_temp = f_d.get('condition_temperature', None)
      unit_temp = f_d.get('condition_unit', None)
      max = f_d.get('swell_maxBreakingHeight', None)
      abs_max = f_d.get('swell_absMaxBreakingHeight', None)
      min = f_d.get('swell_minBreakingHeight', None)
      abs_min = f_d.get('swell_absMinBreakingHeight', None)
      swell_dir = f_d.get('swell_components_combined_compassDirection', None)
      swell_unit = f_d.get('swell_unit', None)
      probability = f_d.get('swell_probability', None)
      period = f_d.get('swell_components_combined_period', None)
      wind_chill = f_d.get('wind_chill', None)
      wind_gusts = f_d.get('wind_gusts', None)
      wind_direction = f_d.get('wind_compassDirection', None)
      wind_degrees = f_d.get('wind_direction', None)
      wind_speed = f_d.get('wind_speed', None)
      wind_unit = f_d.get('wind_unit', None)
  
      return {
              'air_pressure': "{}{}".format(air_pressure, unit_pressure),
              'air_temp': "{}° {}".format(air_temp, unit_temp),
              'stars': "{} solid, {} faded".format(solid_stars, faded_stars),
              'begins': dt.utcfromtimestamp(begins).strftime("%a %-I %p"),
              'issued': dt.utcfromtimestamp(issued).strftime("%a %-I %p"),
              'max_breaking_height': "{} {}".format(max, swell_unit),
              'min_breaking_height': "{} {}".format(min, swell_unit),
              'probability': "{}%".format(probability),
              'swell_direction': "{}".format(swell_dir),
              'swell_period': "{} seconds".format(period),
              'wind_chill': "{}°".format(wind_chill),
              'wind_direction': "{}° {}".format(wind_degrees, wind_direction),
              'wind_gusts': "{} {}".format(wind_gusts, wind_unit),
              'wind_speed': "{} {}".format(wind_speed, wind_unit),
              }