diff --git a/debug_screenshot.py b/debug_screenshot.py index 2ca3c4d5..9ad550ac 100644 --- a/debug_screenshot.py +++ b/debug_screenshot.py @@ -48,7 +48,7 @@ async def main(): await page.type('input[name="password"]', HA_PASSWORD) logging.info("Klicke auf 'LOG IN'-Button...") - await page.click('button[type="submit"]') + await page.click('ha-form > mwc-button') logging.info("Warte nach Login auf Navigation/Neuladen...") # Wir warten, bis ein bekanntes Element des Dashboards erscheint.