'Initialize the switch.'

def __init__(self, smartplug, name):

    self.smartplug = smartplug
    if (name is None):
        self._name = self.smartplug.alias
    else:
        self._name = name
    self._state = None
    _LOGGER.debug('Setting    up    TP-Link    Smart    Plug')
    self._emeter_params = {}
