'Initialize the MQTT binary sensor.'

def __init__(self, name, state_topic, device_class, qos, payload_on, payload_off, value_template):

    self._name = name
    self._state = False
    self._state_topic = state_topic
    self._device_class = device_class
    self._payload_on = payload_on
    self._payload_off = payload_off
    self._qos = qos
    self._template = value_template
