mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 02:38:10 +02:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user