(request: WSGIRequest)
Sets the playback volume.
    value has to be a float between 0 and 1.
Sets the playback volume.
    value has to be a float between 0 and 1.
Sets the playback volume . value has to be a float between 0 and 1 .
def set_volume(request: WSGIRequest) -> None:
    """Sets the playback volume.
    value has to be a float between 0 and 1."""
    volume = float(request.POST.get("value"))  # type: ignore
    _set_volume(volume)
    storage.set("volume", volume)
def set_volume ( request : WSGIRequest ) -> None : volume = float ( request . POST . get ( "value" ) ) # type: ignore _set_volume ( volume ) storage . set ( "volume" , volume )