example-custom-config
example-custom-config copied to clipboard
Replace @asyncio.coroutine and add cv.empty_config_schema
@asyncio.coroutine was removed in Python 3.11, replaced with async def https://docs.python.org/3.10/library/asyncio-task.html#asyncio.coroutine
The component does not have any config options, so using cv.empty_config_schema to ensure it passes validation.