From 5abdc83b2e520f750457b0dbcc6792c21f6c5744 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 11 Jun 2024 15:00:23 +0200 Subject: [PATCH] Fix non-parent-init-called pylint warning in google_assistant tests (#119367) --- tests/components/google_assistant/__init__.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/components/google_assistant/__init__.py b/tests/components/google_assistant/__init__.py index 73dc109f7e6..6be58f50469 100644 --- a/tests/components/google_assistant/__init__.py +++ b/tests/components/google_assistant/__init__.py @@ -2,7 +2,8 @@ from unittest.mock import MagicMock -from homeassistant.components.google_assistant import helpers, http +from homeassistant.components.google_assistant import http +from homeassistant.core import HomeAssistant def mock_google_config_store(agent_user_ids=None): @@ -24,14 +25,14 @@ class MockConfig(http.GoogleConfig): agent_user_ids=None, enabled=True, entity_config=None, - hass=None, + hass: HomeAssistant | None = None, secure_devices_pin=None, should_2fa=None, should_expose=None, should_report_state=False, - ): + ) -> None: """Initialize config.""" - helpers.AbstractConfig.__init__(self, hass) + super().__init__(hass, None) self._enabled = enabled self._entity_config = entity_config or {} self._secure_devices_pin = secure_devices_pin