1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 19:32:19 +01:00

Use strict string mode for WiFi password (#351)

Fixes #350
This commit is contained in:
Otto Winter
2019-01-18 11:21:08 +01:00
committed by GitHub
parent 8424f9c34b
commit d8fd5e9bb4

View File

@@ -24,7 +24,7 @@ WIFI_POWER_SAVE_MODES = {
def validate_password(value): def validate_password(value):
value = cv.string(value) value = cv.string_strict(value)
if not value: if not value:
return value return value
if len(value) < 8: if len(value) < 8: