From 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 31 Aug 2023 16:50:53 +0200 Subject: [PATCH] Add documentation URL for homeassistant_yellow (#99336) * Add documentation URL for homeassistant_yellow * Fix test * Tweak --- homeassistant/components/homeassistant_yellow/hardware.py | 3 ++- tests/components/homeassistant_yellow/test_hardware.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/homeassistant_yellow/hardware.py b/homeassistant/components/homeassistant_yellow/hardware.py index b67eb50ff2c..0749ca8edc6 100644 --- a/homeassistant/components/homeassistant_yellow/hardware.py +++ b/homeassistant/components/homeassistant_yellow/hardware.py @@ -9,6 +9,7 @@ from homeassistant.exceptions import HomeAssistantError from .const import DOMAIN BOARD_NAME = "Home Assistant Yellow" +DOCUMENTATION_URL = "https://yellow.home-assistant.io/documentation/" MANUFACTURER = "homeassistant" MODEL = "yellow" @@ -39,6 +40,6 @@ def async_info(hass: HomeAssistant) -> list[HardwareInfo]: config_entries=config_entries, dongle=None, name=BOARD_NAME, - url=None, + url=DOCUMENTATION_URL, ) ] diff --git a/tests/components/homeassistant_yellow/test_hardware.py b/tests/components/homeassistant_yellow/test_hardware.py index 5fa0e73d82c..5fb662471aa 100644 --- a/tests/components/homeassistant_yellow/test_hardware.py +++ b/tests/components/homeassistant_yellow/test_hardware.py @@ -54,7 +54,7 @@ async def test_hardware_info( "config_entries": [config_entry.entry_id], "dongle": None, "name": "Home Assistant Yellow", - "url": None, + "url": "https://yellow.home-assistant.io/documentation/", } ] }