Skip to content

Commit

Permalink
chore: make library field optional
Browse files Browse the repository at this point in the history
  • Loading branch information
wolffshots committed Nov 22, 2024
1 parent be6820a commit 8c5600e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/audiobookshelf/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 8c5600e

Please sign in to comment.