'Initialize the feeder.'

def __init__(self, hass, host, port, prefix):

    super(GraphiteFeeder, self).__init__(daemon=True)
    self._hass = hass
    self._host = host
    self._port = port
    self._prefix = prefix.rstrip('.')
    self._queue = queue.Queue()
    self._quit_object = object()
    self._we_started = False
    hass.bus.listen_once(EVENT_HOMEASSISTANT_START, self.start_listen)
    hass.bus.listen_once(EVENT_HOMEASSISTANT_STOP, self.shutdown)
    hass.bus.listen(EVENT_STATE_CHANGED, self.event_listener)
    _LOGGER.debug('Graphite    feeding    to    %s:%i    initialized', self._host, self._port)
