From c79fa87a7f772528f73d7606bc9914c296bcae2b Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Mon, 17 Jul 2023 22:21:52 +0200 Subject: [PATCH] Fix check for HA Yellow radio in otbr config flow (#96789) --- homeassistant/components/otbr/config_flow.py | 2 +- tests/components/otbr/test_config_flow.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/otbr/config_flow.py b/homeassistant/components/otbr/config_flow.py index f1219aaebf0..35772c00a89 100644 --- a/homeassistant/components/otbr/config_flow.py +++ b/homeassistant/components/otbr/config_flow.py @@ -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: diff --git a/tests/components/otbr/test_config_flow.py b/tests/components/otbr/test_config_flow.py index b7d42b661c9..deb8672b961 100644 --- a/tests/components/otbr/test_config_flow.py +++ b/tests/components/otbr/test_config_flow.py @@ -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,