mirror of
https://github.com/esphome/esphome.git
synced 2025-09-17 18:52:19 +01:00
Bump pylint from 2.10.2 to 2.11.1 (#2334)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Otto winter <otto@otto-winter.com>
This commit is contained in:
@@ -28,13 +28,11 @@ def validate_frequency(value):
|
||||
max_freq = calc_max_frequency(1)
|
||||
if value < min_freq:
|
||||
raise cv.Invalid(
|
||||
"This frequency setting is not possible, please choose a higher "
|
||||
"frequency (at least {}Hz)".format(int(min_freq))
|
||||
f"This frequency setting is not possible, please choose a higher frequency (at least {int(min_freq)}Hz)"
|
||||
)
|
||||
if value > max_freq:
|
||||
raise cv.Invalid(
|
||||
"This frequency setting is not possible, please choose a lower "
|
||||
"frequency (at most {}Hz)".format(int(max_freq))
|
||||
f"This frequency setting is not possible, please choose a lower frequency (at most {int(max_freq)}Hz)"
|
||||
)
|
||||
return value
|
||||
|
||||
|
Reference in New Issue
Block a user