def update(self):
        """Update WeMo state."""
        try:
            self._state = self.wemo.get_state(True)
        except __HOLE__:
            _LOGGER.warning('Could not update status for %s', self.name)
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/binary_sensor/wemo.py/WemoBinarySensor.update