'Initialize the sensor.'

def __init__(self, weather_data, name, forecast, sensor_type):

    self._client = name
    self._name = SENSOR_TYPES[sensor_type][0]
    self._type = sensor_type
    self._state = STATE_UNKNOWN
    self._unit = SENSOR_TYPES[sensor_type][1]
    self._data = weather_data
    self._forecast = forecast
    self._code = None
