mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-11 14:36:44 +03:00
Combine ifs
This commit is contained in:
@@ -28,9 +28,10 @@ async def find_atvs(loop):
|
||||
atvs = []
|
||||
for i in devices:
|
||||
# Only get Apple TV's
|
||||
if i.device_info.operating_system == OperatingSystem.TvOS:
|
||||
if input("Found {}. Do you want to add it? (y/n) ".format(i.name)) == "y":
|
||||
|
||||
if (
|
||||
i.device_info.operating_system == OperatingSystem.TvOS
|
||||
and input("Found {}. Do you want to add it? (y/n) ".format(i.name)) == "y"
|
||||
):
|
||||
identifier = i.identifier
|
||||
|
||||
pairing = await pyatv.pair(
|
||||
|
||||
Reference in New Issue
Block a user