Enable ruff RUF005 and fix occurrences (#113589)
This commit is contained in:
parent
2a5c85a020
commit
ccd2e989c3
58 changed files with 150 additions and 128 deletions
|
@ -236,7 +236,7 @@ class GenericThermostat(ClimateEntity, RestoreEntity):
|
|||
)
|
||||
if len(presets):
|
||||
self._attr_supported_features |= ClimateEntityFeature.PRESET_MODE
|
||||
self._attr_preset_modes = [PRESET_NONE] + list(presets.keys())
|
||||
self._attr_preset_modes = [PRESET_NONE, *presets.keys()]
|
||||
else:
|
||||
self._attr_preset_modes = [PRESET_NONE]
|
||||
self._presets = presets
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue