Skip to content

Commit

Permalink
[hbbtv]
Browse files Browse the repository at this point in the history
* fix commit 91b2da3
  • Loading branch information
jbleyel committed Apr 26, 2024
1 parent 1cd601d commit e0110e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion HbbTV/src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(self, session):
self.hdmi_cec = None
try:
from Components.HdmiCec import hdmi_cec
if hdmi_cec.instance and "keyVolUp" in hdmi_cec.instance:
if hdmi_cec.instance and hasattr(hdmi_cec.instance, "keyVolUp"):
self.hdmi_cec = hdmi_cec.instance
except ImportError:
pass
Expand Down
2 changes: 1 addition & 1 deletion WebkitHbbTV/src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(self, session):
self.hdmi_cec = None
try:
from Components.HdmiCec import hdmi_cec
if hdmi_cec.instance and "keyVolUp" in hdmi_cec.instance:
if hdmi_cec.instance and hasattr(hdmi_cec.instance, "keyVolUp"):
self.hdmi_cec = hdmi_cec.instance
except ImportError:
pass
Expand Down

0 comments on commit e0110e1

Please sign in to comment.