From 8c5600e423f736cb2a4e4aa3737342fb57e41ed3 Mon Sep 17 00:00:00 2001 From: jadon <16850875+wolffshots@users.noreply.github.com> Date: Fri, 22 Nov 2024 14:02:48 +0000 Subject: [PATCH 1/2] chore: make library field optional --- custom_components/audiobookshelf/sensor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_components/audiobookshelf/sensor.py b/custom_components/audiobookshelf/sensor.py index 995534f..529ad71 100644 --- a/custom_components/audiobookshelf/sensor.py +++ b/custom_components/audiobookshelf/sensor.py @@ -160,7 +160,7 @@ class LibraryFolder: """Class representing a folder in an Audiobookshelf library.""" id: str - full_path: str + full_path: str | None library_id: str added_at: int | None @@ -174,7 +174,7 @@ class LibrarySettings: auto_scan_cron_expression: str | None skip_matching_media_with_asin: bool | None skip_matching_media_with_isbn: bool | None - audiobooks_only: bool + audiobooks_only: bool | None epubs_allow_scripted_content: bool | None hide_single_book_series: bool | None only_show_later_books_in_continue_series: bool | None @@ -192,9 +192,9 @@ class Library: folders: list[LibraryFolder] | None display_order: int | None icon: str | None - media_type: str + media_type: str | None provider: str | None - settings: LibrarySettings + settings: LibrarySettings | None last_scan: int | None last_scan_version: str | None created_at: int | None From e3a4e35d7b87e82d3db26904b10d80d184ebc581 Mon Sep 17 00:00:00 2001 From: jadon <16850875+wolffshots@users.noreply.github.com> Date: Fri, 22 Nov 2024 14:03:48 +0000 Subject: [PATCH 2/2] chore: bump versions --- custom_components/audiobookshelf/const.py | 2 +- custom_components/audiobookshelf/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/audiobookshelf/const.py b/custom_components/audiobookshelf/const.py index a91238a..2d2818d 100644 --- a/custom_components/audiobookshelf/const.py +++ b/custom_components/audiobookshelf/const.py @@ -2,7 +2,7 @@ from homeassistant.const import Platform -VERSION = "v0.2.2" +VERSION = "v0.2.3" ISSUE_URL = "https://github.com/wolffshots/hass-audiobookshelf/issues" DOMAIN = "audiobookshelf" PLATFORMS: list[Platform] = [Platform.SENSOR] diff --git a/custom_components/audiobookshelf/manifest.json b/custom_components/audiobookshelf/manifest.json index a0e50e8..204a916 100644 --- a/custom_components/audiobookshelf/manifest.json +++ b/custom_components/audiobookshelf/manifest.json @@ -13,5 +13,5 @@ "requirements": [ "aiohttp" ], - "version": "0.2.2" + "version": "0.2.3" } \ No newline at end of file