mirror of
https://github.com/esphome/esphome.git
synced 2025-09-14 17:22:20 +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:
@@ -109,8 +109,7 @@ def validate_send_first_at(value):
|
||||
send_every = value[CONF_SEND_EVERY]
|
||||
if send_first_at is not None and send_first_at > send_every:
|
||||
raise cv.Invalid(
|
||||
"send_first_at must be smaller than or equal to send_every! {} <= {}"
|
||||
"".format(send_first_at, send_every)
|
||||
f"send_first_at must be smaller than or equal to send_every! {send_first_at} <= {send_every}"
|
||||
)
|
||||
return value
|
||||
|
||||
@@ -459,8 +458,7 @@ CONF_DEGREE = "degree"
|
||||
def validate_calibrate_polynomial(config):
|
||||
if config[CONF_DEGREE] >= len(config[CONF_DATAPOINTS]):
|
||||
raise cv.Invalid(
|
||||
"Degree is too high! Maximum possible degree with given datapoints is "
|
||||
"{}".format(len(config[CONF_DATAPOINTS]) - 1),
|
||||
f"Degree is too high! Maximum possible degree with given datapoints is {len(config[CONF_DATAPOINTS]) - 1}",
|
||||
[CONF_DEGREE],
|
||||
)
|
||||
return config
|
||||
|
Reference in New Issue
Block a user