'Update the state by the Wemo device.'

def _update_callback(self, _device, _type, _params):

    _LOGGER.info('Subscription    update    for        %s', _device)
    updated = self.wemo.subscription_update(_type, _params)
    self._update(force_update=(not updated))
    if (not hasattr(self, 'hass')):
        return
    self.schedule_update_ha_state()
