def __init__(self, sensor_service, config=None):
        """
        :param sensor_service: Sensor Service instance.
        :type sensor_service: :class:``st2reactor.container.sensor_wrapper.SensorService``

        :keyword config: Sensor config.
        :type config: ``dict`` or None
        """
        self._sensor_service = sensor_service  # Deprecate in the future
        self.sensor_service = sensor_service
        self._config = config or {}  # Deprecate in the future
        self.config = self._config

        :param sensor_service: Sensor Service instance.
        :type sensor_service: :class:``st2reactor.container.sensor_wrapper.SensorService``

        :keyword config: Sensor config.
        :type config: ``dict`` or None
        
st2reactor/st2reactor/sensor/base.py