code: def register_updates(self, callback):
          
          _LOGGER.debug("Registered callback for state: %s", self._stateName)
          self._observer_callbacks.append(callback)
docs: Register a callback to notify a listener of state changes.