Skip to content

Commit 6829d0a

Browse files
edenhausfrenckabmantis
authored
Fix range icon example (#2706)
Co-authored-by: Franck Nijhof <[email protected]> Co-authored-by: Abílio Costa <[email protected]>
1 parent b6880e1 commit 6829d0a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/core/integration-quality-scale/rules/icon-translations.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ In the `icons.json` file, define the ranges and their corresponding icons in asc
7777
"entity": {
7878
"sensor": {
7979
"battery_level": {
80-
"default": "mdi:battery",
80+
"default": "mdi:battery-unknown",
8181
"range": {
8282
"0": "mdi:battery-outline",
8383
"10": "mdi:battery-10",
@@ -103,8 +103,8 @@ The system selects the icon associated with the highest range value that's less
103103
- A value of 45 will show the `mdi:battery-40` icon (45 is greater than 40 but less than 50)
104104
- A value of 100 will show the `mdi:battery` icon (100 equals the highest defined range)
105105
- A value of 5 will show the `mdi:battery-outline` icon (5 is greater than 0 but less than 10)
106-
- A value of -10 will show the `mdi:battery` default icon (value is outside defined ranges)
107-
- A value of 120 will show the `mdi:battery` default icon (value exceeds all defined ranges)
106+
- A value of -10 will show the `mdi:battery-unknown` default icon (value is outside defined ranges)
107+
- A value of 120 will show the `mdi:battery` icon (any value exceeding the last defined range entry, 100, will use the icon associated with that final range value)
108108

109109
When implementing range-based icons:
110110

@@ -128,4 +128,4 @@ There are no exceptions to this rule.
128128

129129
## Related rules
130130

131-
<RelatedRules relatedRules={frontMatter.related_rules}></RelatedRules>
131+
<RelatedRules relatedRules={frontMatter.related_rules}></RelatedRules>

0 commit comments

Comments
 (0)