code: def update_latency(self, data):
          
          self._client['config']['latency'] = data['latency']
          _LOGGER.info('updated latency on %s', self.friendly_name)
          self.callback()
docs: Update latency.