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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: