code: def authenticate(self) -> bool:
          
          with IHCController._mutex:
              if not self.client.authenticate(self._username, self._password):
                  return False
              if self._ihcevents:
                  self.client.enable_runtime_notifications(
                      self._ihcevents.keys())
              return True
docs: Authenticate and enable the registered notifications