mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
Fix tuya cover lint checks (#2414)
This commit is contained in:
parent
c26ea7e4e0
commit
855c98d815
1 changed files with 1 additions and 3 deletions
|
@ -19,9 +19,7 @@ TuyaCover = tuya_ns.class_("TuyaCover", cover.Cover, cg.Component)
|
||||||
def validate_range(config):
|
def validate_range(config):
|
||||||
if config[CONF_MIN_VALUE] > config[CONF_MAX_VALUE]:
|
if config[CONF_MIN_VALUE] > config[CONF_MAX_VALUE]:
|
||||||
raise cv.Invalid(
|
raise cv.Invalid(
|
||||||
"min_value({}) cannot be greater than max_value({})".format(
|
f"min_value ({config[CONF_MIN_VALUE]}) cannot be greater than max_value ({config[CONF_MAX_VALUE]})"
|
||||||
config[CONF_MIN_VALUE], config[CONF_MAX_VALUE]
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
return config
|
return config
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue