Does anybody have a working playwright script to login to Home Assistant?

Hi there,

I’m trying to use playwright to extract a few diagrams from Home Assistant using a browser view. I know that there’s the Kindle Screensaver, but I want to test and build something else.

Does anybody have a working (Python) code snippet that I can work from on how to login to Home Assistant using Playwright?

Any help much appreciated.

Thanks!