1
0
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:
Nathan Spencer
2025-11-24 01:41:41 +00:00
parent 8abfc047f9
commit f0669c7f63

View File

@@ -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".