wacom: don't check for 'protocol' in the config, it's always set

This commit is contained in:
Peter Hutterer 2018-02-08 12:12:24 +10:00
parent b8de0aa020
commit d948ff7bb6
1 changed files with 1 additions and 1 deletions

View File

@ -677,7 +677,7 @@ class WacomDevice(GObject.Object):
def _init_protocol(self):
protocol = Protocol.UNKNOWN
if self._config is not None and 'Protocol' in self._config:
if self._config is not None:
try:
protocol = next(p for p in Protocol if p.value == self._config['Protocol'])
except StopIteration: