Fix non-parent-init-called pylint warning in google_assistant tests (#119367)

This commit is contained in:
epenet 2024-06-11 15:00:23 +02:00 committed by GitHub
parent d376371c25
commit 5abdc83b2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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