settings: don't add non-existant key in raw xy processing

This commit is contained in:
Peter F. Patel-Schneider 2022-10-12 15:49:51 -04:00
parent 255c315ce1
commit 67c1d7e778
1 changed files with 7 additions and 6 deletions

View File

@ -1448,6 +1448,7 @@ class RawXYProcessing:
def start(self, key):
device_key = next((k for k in self.device.keys if k.key == key), None)
if device_key:
self.keys.append(device_key)
if not self.active:
self.active = True