Skip to content

Commit

Permalink
home-assistant-31 Limit OSD name to 13 chars moved to CEC adapter (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
konikvranik committed Jan 21, 2017
1 parent 4961526 commit 6c5305d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycec/cec.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, name: str = None, monitor_only: bool = None,
self._cecconfig = cec.libcec_configuration()
if monitor_only is not None:
self._cecconfig.bMonitorOnly = 1 if monitor_only else 0
self._cecconfig.strDeviceName = name
self._cecconfig.strDeviceName = name[:13]
if activate_source is not None:
self._cecconfig.bActivateSource = 1 if activate_source else 0
self._cecconfig.deviceTypes.Add(device_type)
Expand Down

0 comments on commit 6c5305d

Please sign in to comment.