mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-19 18:28:42 +00:00
Search for boards explicitly in the return value of hardware/info (#14320)
This commit is contained in:
@@ -176,9 +176,11 @@ class HaConfigHardware extends SubscribeMixin(LitElement) {
|
||||
let imageURL: string | undefined;
|
||||
let documentationURL: string | undefined;
|
||||
|
||||
if (this._hardwareInfo?.hardware.length) {
|
||||
const boardData = this._hardwareInfo.hardware[0];
|
||||
const boardData = this._hardwareInfo?.hardware.find(
|
||||
(hw) => hw.board !== null
|
||||
);
|
||||
|
||||
if (boardData) {
|
||||
boardId = boardData.board.hassio_board_id;
|
||||
boardName = boardData.name;
|
||||
documentationURL = boardData.url;
|
||||
|
||||
Reference in New Issue
Block a user