mirror of
https://github.com/natekspencer/hacs-oasis_mini.git
synced 2025-12-06 18:44:14 -05:00
Fix docstring in update_tracks
This commit is contained in:
@@ -18,8 +18,8 @@ def get_author_name(data: dict) -> str:
|
||||
Extracts the author's display name from a nested track data dictionary.
|
||||
|
||||
Parameters:
|
||||
data (dict): A mapping representing track/result data. Expected shapes include
|
||||
{"author": {"user": {"name": ..., "nickname": ...}}} or {"author": {"name": ..., "nickname": ...}}.
|
||||
data (dict): A mapping representing track/result data. Expected shape is
|
||||
{"author": {"user": {"name": ..., "nickname": ...}}}.
|
||||
|
||||
Returns:
|
||||
str: The author's `name` if present, otherwise the author's `nickname`, otherwise "Kinetic Oasis".
|
||||
|
||||
Reference in New Issue
Block a user