The repository has a very simple example itself in the custom_components
and tests
folder. I recommend looking at this section of the README: GitHub - MatthewFlamm/pytest-homeassistant-custom-component: Package to automatically extract testing plugins from Home Assistant for custom component testing
Hi,
did check these resources before, but still got errors.
But your post magically helped, today with the same setup all imports are resolved and also running the test does not throw “no module custom-components” as yesterday.
So - thanks!