def on_message(self, message):
    'Handle a new messages that was received from the vacuum.'
    _LOGGER.debug('Message received for %s device: %s', self.name, message)
    self.schedule_update_ha_state()
Handle a new messages that was received from the vacuum.
def on_message(self, message):
    
    _LOGGER.debug('Message received for %s device: %s', self.name, message)
    self.schedule_update_ha_state()