1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Removes unnecessary else/elif blocks (#26884)

This commit is contained in:
Franck Nijhof
2019-09-24 22:53:03 +02:00
committed by Paulus Schoutsen
parent 18873d202d
commit b1118cb8ff
13 changed files with 53 additions and 42 deletions

View File

@@ -396,10 +396,12 @@ class LgWebOSDevice(MediaPlayerDevice):
if media_id == channel["channelNumber"]:
perfect_match_channel_id = channel["channelId"]
continue
elif media_id.lower() == channel["channelName"].lower():
if media_id.lower() == channel["channelName"].lower():
perfect_match_channel_id = channel["channelId"]
continue
elif media_id.lower() in channel["channelName"].lower():
if media_id.lower() in channel["channelName"].lower():
partial_match_channel_id = channel["channelId"]
if perfect_match_channel_id is not None: