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:
@@ -4,7 +4,7 @@ import socket
|
||||
import pytest
|
||||
import pytest_socket
|
||||
|
||||
from homeassistant.core import async_get_hass
|
||||
from homeassistant.core import HomeAssistant, async_get_hass
|
||||
|
||||
|
||||
def test_sockets_disabled() -> None:
|
||||
@@ -20,7 +20,7 @@ def test_sockets_enabled(socket_enabled):
|
||||
mysocket.connect(("127.0.0.2", 1234))
|
||||
|
||||
|
||||
async def test_hass_cv(hass):
|
||||
async def test_hass_cv(hass: HomeAssistant) -> None:
|
||||
"""Test hass context variable.
|
||||
|
||||
When tests are using the `hass`, this tests that the hass context variable was set
|
||||
|
||||
Reference in New Issue
Block a user