code: def update_connected(self, status):
          
          self._client['connected'] = status
          _LOGGER.info('updated connected status to %s on %s', status, self.friendly_name)
          self.callback()
docs: Update connected.