'Initialize the WeMo sensor.'

def __init__(self, device):

    self.wemo = device
    self._state = None
    wemo = get_component('wemo')
    wemo.SUBSCRIPTION_REGISTRY.register(self.wemo)
    wemo.SUBSCRIPTION_REGISTRY.on(self.wemo, None, self._update_callback)
