ui: don't show warning in pairing window for receivers with unlimited pairing

This commit is contained in:
Peter F. Patel-Schneider 2020-02-17 09:58:24 -05:00 committed by Filipe Laíns
parent 3edac85b90
commit 8fb52a3f37
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ def create(receiver):
assistant.set_role('pair-device')
page_text = _("If the device is already turned on, turn if off and on again.")
if receiver.remaining_pairings():
if receiver.remaining_pairings() and receiver.remaining_pairings() >= 0:
page_text += _("\n\nThis receiver has %d pairing(s) remaining.")%receiver.remaining_pairings()
page_text += _("\nCancelling at this point will not use up a pairing.")