mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 10:44:13 +01:00
Fix error message in bitsync config validation
This commit is contained in:
parent
57dd5cf84f
commit
f5e7c339b6
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ def validate_config(config):
|
||||||
if config[CONF_PA_PIN] == "BOOST" and config[CONF_PA_POWER] < 2:
|
if config[CONF_PA_PIN] == "BOOST" and config[CONF_PA_POWER] < 2:
|
||||||
raise cv.Invalid("PA power must be >= 2 dbm when using the BOOST pin")
|
raise cv.Invalid("PA power must be >= 2 dbm when using the BOOST pin")
|
||||||
if CONF_BITSYNC in config and config[CONF_BITSYNC] and CONF_BITRATE not in config:
|
if CONF_BITSYNC in config and config[CONF_BITSYNC] and CONF_BITRATE not in config:
|
||||||
raise cv.Invalid("Bitsync is true but not bitrate not configured")
|
raise cv.Invalid("Bitsync is true but bitrate is not configured")
|
||||||
if CONF_BITRATE in config and CONF_BITSYNC not in config:
|
if CONF_BITRATE in config and CONF_BITSYNC not in config:
|
||||||
raise cv.Invalid(
|
raise cv.Invalid(
|
||||||
"Bitrate is configured but not bitsync; add 'bitsync: true' for original functionality"
|
"Bitrate is configured but not bitsync; add 'bitsync: true' for original functionality"
|
||||||
|
|
Loading…
Reference in a new issue