def __init__(self, smartplug, name):
        self.smartplug = smartplug
        self._name = name
Initialize the switch.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/switch/dlink.py/SmartPlugSwitch.__init__