'Initialize the switch.'

def __init__(self, hass, object_id, friendly_name, command_on, command_off, command_state, value_template):

    self._hass = hass
    self.entity_id = ENTITY_ID_FORMAT.format(object_id)
    self._name = friendly_name
    self._state = False
    self._command_on = command_on
    self._command_off = command_off
    self._command_state = command_state
    self._value_template = value_template
