mirror of
https://github.com/esphome/esphome.git
synced 2025-09-10 15:22:24 +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:
@@ -20,8 +20,7 @@ PartitionLightOutput = partitions_ns.class_(
|
||||
def validate_from_to(value):
|
||||
if value[CONF_FROM] > value[CONF_TO]:
|
||||
raise cv.Invalid(
|
||||
"From ({}) must not be larger than to ({})"
|
||||
"".format(value[CONF_FROM], value[CONF_TO])
|
||||
f"From ({value[CONF_FROM]}) must not be larger than to ({value[CONF_TO]})"
|
||||
)
|
||||
return value
|
||||
|
||||
|
Reference in New Issue
Block a user