1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-15 15:18:16 +00: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 ba2e382a0d
commit 0e7c247c0e

View File

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