Fix mysensors tests typing (#51621)

This commit is contained in:
Martin Hjelmare 2021-06-08 14:28:36 +02:00 committed by GitHub
parent 3fa6c97801
commit 6de604a326
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 12 deletions

View file

@ -18,7 +18,9 @@ from homeassistant.core import HomeAssistant
("/dev/ttyACM0", False),
],
)
def test_is_serial_port_windows(hass: HomeAssistant, port: str, expect_valid: bool):
def test_is_serial_port_windows(
hass: HomeAssistant, port: str, expect_valid: bool
) -> None:
"""Test windows serial port."""
with patch("sys.platform", "win32"):