diff --git a/pushover.py b/pushover.py index d0afd73..f539992 100755 --- a/pushover.py +++ b/pushover.py @@ -11,7 +11,7 @@ def get_args(): parser.add_argument('--url', type=str, help='Supplementary URL to show with your message') parser.add_argument('--url_title', type=str, help='title for your supplementary URL, otherwise just the URL is shown') parser.add_argument('--device', type=str, help='Device name to send the message directly to') - parser.add_argument('--priority', type=str, help='Notification priority (low-to-high: -2 to 1)') + parser.add_argument('--priority', type=int, help='Notification priority (low-to-high: -2 to 1)') parser.add_argument('--sound', type=str, help='The name of a supported sound (https://pushover.net/api#sounds; custom sounds are supported)') args = parser.parse_args() return args @@ -27,7 +27,7 @@ def main(): url: str | None = args.url if args.url else None url_title: str | None = args.url_title if args.url_title else None device: str | None = args.device if args.device else None - priority: str | None = args.priority if args.priority else None + priority: int | None = args.priority if args.priority else None sound: str | None = args.sound if args.sound else None if not msg: