mirror of
https://github.com/esphome/esphome.git
synced 2025-09-03 11:52:20 +01:00
Drop Python 2 Support (#793)
* Remove Python 2 support * Remove u-strings * Remove docker symlinks * Remove from travis * Update requirements * Upgrade flake8/pylint * Fixes * Manual * Run pyupgrade * Lint * Remove base_int * Fix * Update platformio_api.py * Update component.cpp
This commit is contained in:
@@ -30,9 +30,9 @@ def validate_password(value):
|
||||
if not value:
|
||||
return value
|
||||
if len(value) < 8:
|
||||
raise cv.Invalid(u"WPA password must be at least 8 characters long")
|
||||
raise cv.Invalid("WPA password must be at least 8 characters long")
|
||||
if len(value) > 64:
|
||||
raise cv.Invalid(u"WPA password must be at most 64 characters long")
|
||||
raise cv.Invalid("WPA password must be at most 64 characters long")
|
||||
return value
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user