Skip to content

Commit

Permalink
Move documentation to be the first link in the integration command (#243
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ludeeus authored Mar 12, 2024
1 parent 37307a4 commit 4ed0f38
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions services/bots/src/discord/commands/home-assistant/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ export class CommandHomeassistantIntegration {
description: integrationData.description,
thumbnail: { url: `https://brands.home-assistant.io/${domain}/dark_logo.png` },
fields: [
{
name: 'Documentation',
value: `[View the documentation](https://${
channel === 'beta' ? 'rc' : 'www'
}.home-assistant.io/integrations/${domain}/)`,
inline: true,
},
{
name: 'Quality scale',
value: `[${
Expand All @@ -94,13 +101,6 @@ export class CommandHomeassistantIntegration {
value: `[${integrationData.integration_type}](https://developers.home-assistant.io/docs/creating_integration_manifest#integration-type)`,
inline: true,
},
{
name: 'Documentation',
value: `[View the documentation](https://${
channel === 'beta' ? 'rc' : 'www'
}.home-assistant.io/integrations/${domain}/)`,
inline: true,
},
{
name: 'Source',
value: `[View the source on GitHub](https://github.com/home-assistant/core/tree/dev/homeassistant/components/${domain})`,
Expand Down

0 comments on commit 4ed0f38

Please sign in to comment.