1
0
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:
epenet
2023-02-08 08:51:43 +01:00
committed by GitHub
parent 1bbc03d0ba
commit c98b4e3204
50 changed files with 816 additions and 671 deletions

View File

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