chore: Add loudness docstring

This commit is contained in:
Matthias 2024-11-06 20:11:03 +01:00
parent e7cf1e34cf
commit d4cd5ba231

View File

@ -547,9 +547,8 @@ class Telegram(RPCHandler):
return None
return message
def _message_loudness(
self, msg_type: RPCMessageType, exit_reason: str
) -> Literal["off", "silent", "on"]:
def _message_loudness(self, msg_type: RPCMessageType, exit_reason: str) -> str:
"""Determine the loudness of the message - on, off or silent"""
default_noti = "on"
msg_type = msg_type