receiver: fix error when settings listed on descriptor.py return None

e.g. REPROG_CONTROLS_V4 when no keys can be reprogrammed by Solaar
This commit is contained in:
Vinícius 2020-06-20 16:54:30 -03:00 committed by Peter F. Patel-Schneider
parent c5ca2c2818
commit 5e4c792a64
1 changed files with 1 additions and 0 deletions

View File

@ -250,6 +250,7 @@ class PairedDevice(object):
if self._settings is None:
if self.descriptor and self.descriptor.settings:
self._settings = [s(self) for s in self.descriptor.settings]
self._settings = [s for s in self._settings if s is not None]
else:
self._settings = []
if not self._feature_settings_checked: