Fix check for HA Yellow radio in otbr config flow (#96789)

This commit is contained in:
Erik Montnemery 2023-07-17 22:21:52 +02:00 committed by GitHub
parent 49a27bb9a7
commit c79fa87a7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ async def _title(hass: HomeAssistant, discovery_info: HassioServiceInfo) -> str:
addon_info = await async_get_addon_info(hass, discovery_info.slug)
device = addon_info.get("options", {}).get("device")
if _is_yellow(hass) and device == "/dev/TTYAMA1":
if _is_yellow(hass) and device == "/dev/ttyAMA1":
return f"Home Assistant Yellow ({discovery_info.name})"
if device and "SkyConnect" in device:

View File

@ -240,7 +240,7 @@ async def test_hassio_discovery_flow_yellow(
addon_info.return_value = {
"available": True,
"hostname": None,
"options": {"device": "/dev/TTYAMA1"},
"options": {"device": "/dev/ttyAMA1"},
"state": None,
"update_available": False,
"version": None,