Add pylint CodeStyle extension (#53147)
This commit is contained in:
parent
c35b5a1c64
commit
f6b162bc39
60 changed files with 103 additions and 98 deletions
|
@ -360,7 +360,7 @@ class MqttFan(MqttEntity, FanEntity):
|
|||
if self._feature_preset_mode:
|
||||
self._supported_features |= SUPPORT_PRESET_MODE
|
||||
|
||||
for tpl_dict in [self._command_templates, self._value_templates]:
|
||||
for tpl_dict in (self._command_templates, self._value_templates):
|
||||
for key, tpl in tpl_dict.items():
|
||||
if tpl is None:
|
||||
tpl_dict[key] = lambda value: value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue