mirror of
https://github.com/esphome/esphome.git
synced 2026-08-22 22:26:21 +00:00
Use a docstring instead of pass in the to_code test stub
This commit is contained in:
@@ -7142,7 +7142,7 @@ async def test_wrap_to_code_comment_is_insertion_order_independent() -> None:
|
||||
comments: list[str] = []
|
||||
|
||||
async def to_code(conf):
|
||||
pass
|
||||
"""Accept any config; only the wrapper's comment output matters."""
|
||||
|
||||
comp = SimpleNamespace(to_code=to_code, config_schema=object())
|
||||
wrapped = _wrap_to_code("demo", comp, yaml_util)
|
||||
|
||||
Reference in New Issue
Block a user