def _update_callback(self, _device, _params):
        _LOGGER.info(
            'Subscription update for  %s',
            _device)
        if not hasattr(self, 'hass'):
            self.update()
            return
        self.update_ha_state(True)
Called by the wemo device callback to update state.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/binary_sensor/wemo.py/WemoBinarySensor._update_callback