Skip to content

Commit

Permalink
🚑 Fixes type links in configuration blocks (home-assistant#9968)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Jul 24, 2019
1 parent 9963bd2 commit 337a165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def type_link(type, component: nil)
type.strip!
if TYPE_LINKS.include? type.downcase
url = TYPE_LINKS[type.downcase] % {component: component}
"[%s](%s)" % [type, url]
"<a href=\"%s\">%s</a>" % [url, type]
else
type
end
Expand Down

0 comments on commit 337a165

Please sign in to comment.