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