'Initialize the WeMo switch.'

def __init__(self, device):

    self.wemo = device
    self.insight_params = None
    self.maker_params = None
    self.coffeemaker_mode = None
    self._state = None
    self._model_name = self.wemo.model_name
    wemo = get_component('wemo')
    wemo.SUBSCRIPTION_REGISTRY.register(self.wemo)
    wemo.SUBSCRIPTION_REGISTRY.on(self.wemo, None, self._update_callback)
