From 3cf916dc777d7295a125b0faf545be9962080892 Mon Sep 17 00:00:00 2001 From: "alexei.dolgolyov" Date: Mon, 2 Feb 2026 00:30:39 +0300 Subject: [PATCH] Rename last_updated attribute to last_updated_at Renamed for consistency with created_at attribute naming. Co-Authored-By: Claude Opus 4.5 --- README.md | 2 +- custom_components/immich_album_watcher/const.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 70231b5..04e0dba 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ If no external domain is configured in Immich, all URLs will use the Server URL | Entity Type | Name | Description | |-------------|------|-------------| -| Sensor | Album ID | Album identifier with `album_name`, `asset_count`, `share_url`, `last_updated`, and `created_at` attributes | +| Sensor | Album ID | Album identifier with `album_name`, `asset_count`, `share_url`, `last_updated_at`, and `created_at` attributes | | Sensor | Asset Count | Total number of assets (includes `people` list in attributes) | | Sensor | Photo Count | Number of photos in the album | | Sensor | Video Count | Number of videos in the album | diff --git a/custom_components/immich_album_watcher/const.py b/custom_components/immich_album_watcher/const.py index c2b8038..8a9caca 100644 --- a/custom_components/immich_album_watcher/const.py +++ b/custom_components/immich_album_watcher/const.py @@ -49,7 +49,7 @@ ATTR_REMOVED_COUNT: Final = "removed_count" ATTR_ADDED_ASSETS: Final = "added_assets" ATTR_REMOVED_ASSETS: Final = "removed_assets" ATTR_CHANGE_TYPE: Final = "change_type" -ATTR_LAST_UPDATED: Final = "last_updated" +ATTR_LAST_UPDATED: Final = "last_updated_at" ATTR_CREATED_AT: Final = "created_at" ATTR_THUMBNAIL_URL: Final = "thumbnail_url" ATTR_SHARED: Final = "shared"