Change the classes for gallery cards information to be XxxGalleryInfo
ScanInfo -> ScanGalleryInfo CaptureInfo -> CaptureGalleryInfo - note there were two classes called CaptureInfo, only one has been changed to deduplicate the names
This commit is contained in:
parent
d7421ccea5
commit
90f106c87d
5 changed files with 23 additions and 23 deletions
|
|
@ -172,11 +172,11 @@ class SmartScanThing(OFMThing):
|
|||
_show_data_in_gallery = True
|
||||
|
||||
@property
|
||||
def gallery_data_schema(self) -> type[scan_directories.ScanInfo]:
|
||||
def gallery_data_schema(self) -> type[scan_directories.ScanGalleryInfo]:
|
||||
"""The schema (BaseModel) for passing data to the gallery."""
|
||||
return scan_directories.ScanInfo
|
||||
return scan_directories.ScanGalleryInfo
|
||||
|
||||
def get_data_for_gallery(self) -> list[scan_directories.ScanInfo]:
|
||||
def get_data_for_gallery(self) -> list[scan_directories.ScanGalleryInfo]:
|
||||
"""Return all the information from the scan directories.
|
||||
|
||||
It is preferable to use the method rather than calling
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue