diff --git a/src/uiprotect/data/base.py b/src/uiprotect/data/base.py index eb755cb1..bc6f364c 100644 --- a/src/uiprotect/data/base.py +++ b/src/uiprotect/data/base.py @@ -745,6 +745,14 @@ async def _save_device_changes( revert_on_fail: bool = True, ) -> None: """Saves the current device changes to UFP.""" + _LOGGER.debug( + "Saving device changes for %s (%s) data_before_changes=%s updated=%s", + self.id, + self.model, + data_before_changes, + updated, + ) + assert ( self._update_lock.locked() ), "save_device_changes should only be called when the update lock is held"