Fix typos found by codespell (#31243)

* Fix typos found by codespell

* Fix typos found by codespell

* codespell: Furture  ==> Future

* Update test_config_flow.py

* Update __init__.py

* Spellcheck: successfull  ==> successful

* Codespell: unsuccesful  ==> unsuccessful

* Codespell: cant  ==> can't

* Codespell: firware ==> firmware

* Codespell: mimick  ==> mimic
This commit is contained in:
Christian Clauss
2020-01-31 17:33:00 +01:00
committed by GitHub
parent a017c26234
commit df7d2b3aeb
121 changed files with 170 additions and 156 deletions

View File

@ -56,7 +56,7 @@ def gather_info(arguments) -> Info:
YES_NO = {
"validators": [["Type either 'yes' or 'no'", lambda value: value in ("yes", "no")]],
"convertor": lambda value: value == "yes",
"converter": lambda value: value == "yes",
}
@ -155,8 +155,8 @@ def _gather_info(fields) -> dict:
break
if hint is None:
if "convertor" in info:
value = info["convertor"](value)
if "converter" in info:
value = info["converter"](value)
answers[key] = value
return answers