mirror of
https://github.com/home-assistant/core.git
synced 2026-09-17 05:58:41 +01:00
Re-add clarification comment to lg infrared (#170902)
This commit is contained in:
@@ -115,6 +115,8 @@ class LgIrReceivedCommandEvent(LgIrEntity, InfraredReceiverConsumerEntity, Event
|
||||
try:
|
||||
command_code = LGTVCode(nec_command.command)
|
||||
except ValueError:
|
||||
# Ensure that a future change to the LGTVCode enum doesn't break
|
||||
# this and shows as unknown.
|
||||
event_type = _EVENT_TYPE_UNKNOWN
|
||||
else:
|
||||
event_type = _COMMAND_CODE_TO_EVENT_TYPE.get(
|
||||
|
||||
Reference in New Issue
Block a user