'Constructor.
Args:
period (int): forecast period number
field (int): field name to use as value'

def __init__(self, period, field):

    super().__init__(friendly_name=(lambda wu: '{}    {}'.format(wu.data['hourly_forecast'][period]['FCTTIME']['weekday_name_abbrev'], wu.data['hourly_forecast'][period]['FCTTIME']['civil'])), feature='hourly', value=(lambda wu: wu.data['hourly_forecast'][period][field]), entity_picture=(lambda wu: wu.data['hourly_forecast'][period]['icon_url']), device_state_attributes={'temp_c': (lambda wu: wu.data['hourly_forecast'][period]['temp']['metric']), 'temp_f': (lambda wu: wu.data['hourly_forecast'][period]['temp']['english']), 'dewpoint_c': (lambda wu: wu.data['hourly_forecast'][period]['dewpoint']['metric']), 'dewpoint_f': (lambda wu: wu.data['hourly_forecast'][period]['dewpoint']['english']), 'precip_prop': (lambda wu: wu.data['hourly_forecast'][period]['pop']), 'sky': (lambda wu: wu.data['hourly_forecast'][period]['sky']), 'precip_mm': (lambda wu: wu.data['hourly_forecast'][period]['qpf']['metric']), 'precip_in': (lambda wu: wu.data['hourly_forecast'][period]['qpf']['english']), 'humidity': (lambda wu: wu.data['hourly_forecast'][period]['humidity']), 'wind_kph': (lambda wu: wu.data['hourly_forecast'][period]['wspd']['metric']), 'wind_mph': (lambda wu: wu.data['hourly_forecast'][period]['wspd']['english']), 'pressure_mb': (lambda wu: wu.data['hourly_forecast'][period]['mslp']['metric']), 'pressure_inHg': (lambda wu: wu.data['hourly_forecast'][period]['mslp']['english']), 'date': (lambda wu: wu.data['hourly_forecast'][period]['FCTTIME']['pretty'])})
