

def __init__(self, device):
    'Initialize the WeMo sensor.'
    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)

dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/binary_sensor/wemo.py WemoBinarySensor.__init__/original