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 (2) (#87675)
* Add typing to tests with single hass argument (2) * a few more
This commit is contained in:
@@ -11,7 +11,7 @@ from homeassistant.const import (
|
||||
EVENT_HOMEASSISTANT_FINAL_WRITE,
|
||||
EVENT_HOMEASSISTANT_STOP,
|
||||
)
|
||||
from homeassistant.core import CoreState
|
||||
from homeassistant.core import CoreState, HomeAssistant
|
||||
from homeassistant.helpers import storage
|
||||
from homeassistant.util import dt
|
||||
from homeassistant.util.color import RGBColor
|
||||
@@ -64,7 +64,7 @@ async def test_loading(hass, store):
|
||||
assert data == MOCK_DATA
|
||||
|
||||
|
||||
async def test_custom_encoder(hass):
|
||||
async def test_custom_encoder(hass: HomeAssistant) -> None:
|
||||
"""Test we can save and load data."""
|
||||
|
||||
class JSONEncoder(json.JSONEncoder):
|
||||
|
||||
Reference in New Issue
Block a user