async def format_observations_data(self):
    'Flatten out wind and gust data.'
    flattened = {}
    wind = self.observations_data['data']['wind']
    flattened['wind_speed_kilometre'] = wind['speed_kilometre']
    flattened['wind_speed_knot'] = wind['speed_knot']
    flattened['wind_direction'] = wind['direction']
    if (self.observations_data['data']['gust'] is not None):
        gust = self.observations_data['data']['gust']
        flattened['gust_speed_kilometre'] = gust['speed_kilometre']
        flattened['gust_speed_knot'] = gust['speed_knot']
    else:
        flattened['gust_speed_kilometre'] = None
        flattened['gust_speed_knot'] = None
    self.observations_data['data'].update(flattened)
Flatten out wind and gust data.
async def format_observations_data(self):
    
    flattened = {}
    wind = self.observations_data['data']['wind']
    flattened['wind_speed_kilometre'] = wind['speed_kilometre']
    flattened['wind_speed_knot'] = wind['speed_knot']
    flattened['wind_direction'] = wind['direction']
    if (self.observations_data['data']['gust'] is not None):
        gust = self.observations_data['data']['gust']
        flattened['gust_speed_kilometre'] = gust['speed_kilometre']
        flattened['gust_speed_knot'] = gust['speed_knot']
    else:
        flattened['gust_speed_kilometre'] = None
        flattened['gust_speed_knot'] = None
    self.observations_data['data'].update(flattened)