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