Fix Hardware Images when in Dark Mode

This commit is contained in:
Zack 2022-06-29 17:53:09 -05:00
parent 9324061d05
commit 0d7474273f
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ export const brandsUrl = (options: BrandsOptions): string =>
export const hardwareBrandsUrl = (options: HardwareBrandsOptions): string =>
`https://brands.home-assistant.io/hardware/${options.category}/${
options.darkOptimized ? "dark_" : ""
}${options.manufacturer}${options.model ? `_${options.model}` : ""}.png`;
options.manufacturer
}${options.model ? `_${options.model}` : ""}.png`;
export const extractDomainFromBrandUrl = (url: string) => url.split("/")[4];