summaryrefslogtreecommitdiff
path: root/decoders/cec/protocoldata.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/cec/protocoldata.py')
-rw-r--r--decoders/cec/protocoldata.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/decoders/cec/protocoldata.py b/decoders/cec/protocoldata.py
index dd867e0..fb80494 100644
--- a/decoders/cec/protocoldata.py
+++ b/decoders/cec/protocoldata.py
@@ -107,10 +107,7 @@ def resolve_logical_address(id, is_initiator):
# Special handling of 0x0F.
if id == 0x0F:
- if is_initiator:
- return 'Unregistered'
- else:
- return 'Broadcast'
+ return 'Unregistered' if is_initiator else 'Broadcast'
return logical_adresses[id]