mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Add typing to tests with single hass argument (#87631)
This commit is contained in:
@@ -6,6 +6,7 @@ from unittest.mock import Mock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.generated import config_flows
|
||||
from homeassistant.helpers import translation
|
||||
from homeassistant.loader import async_get_integration
|
||||
@@ -75,7 +76,7 @@ async def test_component_translation_path(hass, enable_custom_integrations):
|
||||
)
|
||||
|
||||
|
||||
def test_load_translations_files(hass):
|
||||
def test_load_translations_files(hass: HomeAssistant) -> None:
|
||||
"""Test the load translation files function."""
|
||||
# Test one valid and one invalid file
|
||||
file1 = hass.config.path(
|
||||
|
||||
Reference in New Issue
Block a user