mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Replace HomeAssistantType with HomeAssistant for integrations m* - n* (#49566)
* Integration neato: rename HomeAssistantType to HomeAssistant. * Integration mysensors: rename HomeAssistantType to HomeAssistant. * Integration mobile_app: rename HomeAssistantType to HomeAssistant. * Integration minecraft_server: rename HomeAssistantType to HomeAssistant. * Clean up Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
@@ -5,7 +5,7 @@ import pytest
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.mysensors.gateway import is_serial_port
|
||||
from homeassistant.helpers.typing import HomeAssistantType
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
@@ -18,7 +18,7 @@ from homeassistant.helpers.typing import HomeAssistantType
|
||||
("/dev/ttyACM0", False),
|
||||
],
|
||||
)
|
||||
def test_is_serial_port_windows(hass: HomeAssistantType, port: str, expect_valid: bool):
|
||||
def test_is_serial_port_windows(hass: HomeAssistant, port: str, expect_valid: bool):
|
||||
"""Test windows serial port."""
|
||||
|
||||
with patch("sys.platform", "win32"):
|
||||
|
||||
Reference in New Issue
Block a user