mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Fix check for HA Yellow radio in otbr config flow (#96789)
This commit is contained in:
parent
49a27bb9a7
commit
c79fa87a7f
@ -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:
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user