def __init__(self, smartplug: SmartPlug):
    'Initialize the switch.'
    self.smartplug = smartplug
    self._sysinfo = None
    self._state = None
    self._available = False
    self._emeter_params = {}
    self._mac = None
    self._alias = None
    self._model = None
    self._device_id = None
Initialize the switch.
def __init__(self, smartplug: SmartPlug):
    
    self.smartplug = smartplug
    self._sysinfo = None
    self._state = None
    self._available = False
    self._emeter_params = {}
    self._mac = None
    self._alias = None
    self._model = None
    self._device_id = None