Skip to content

Commit f0ee992

Browse files
committed
Fix comments
1 parent 2a44e42 commit f0ee992

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/panels/lovelace/card-suggestions/hui-tile-card-suggestions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ const SENSOR_TREND_VARIANTS: TileVariant[] = [
135135
{ id: "tile_trend_graph", features: ["trend-graph"] },
136136
];
137137

138-
// Domains with a dedicated card-suggestions providerskip tile suggestions
139-
// for them so the dedicated card wins.
138+
// Domains with a dedicated card-suggestions provider; skip the tile
139+
// fallback so the dedicated card wins.
140140
const EXCLUDED_DOMAINS = new Set(["calendar", "todo"]);
141141

142142
const getVariants = (
@@ -167,7 +167,7 @@ const buildTileConfig = (
167167
return config;
168168
};
169169

170-
// A throwing supportsX would invalidate the variant treat it as unsupported
170+
// A throwing supportsX would invalidate the variant; treat it as unsupported
171171
// rather than tearing down the whole suggestion list.
172172
const allFeaturesSupported = (
173173
hass: HomeAssistant,

src/panels/lovelace/editor/card-editor/hui-suggestion-entity-tree.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ export class HuiSuggestionEntityTree extends LitElement {
8181
this._loadDomainTranslations();
8282
}
8383

84-
// Backend "title" category is loaded by the config panel — not from the dashboard.
8584
private async _loadDomainTranslations() {
8685
if (!this.hass) return;
8786
this._domainLocalize = await this.hass.loadBackendTranslation("title");

src/panels/lovelace/editor/card-editor/hui-suggestion-picker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export class HuiSuggestionPicker extends LitElement {
5959
this._narrow = ev.matches;
6060
};
6161

62-
// Memoize on scalars so the result stays stable when only hass changes
63-
// keeps hui-card previews from re-rendering on every state tick.
62+
// Memoize on scalars so the result stays stable when only hass changes.
63+
// Keeps hui-card previews from re-rendering on every state tick.
6464
private _computeSuggestions = memoizeOne(
6565
(
6666
entityId: string | undefined,
@@ -358,7 +358,7 @@ export class HuiSuggestionPicker extends LitElement {
358358
font-size: var(--ha-font-size-s);
359359
}
360360
361-
/* Mobile master/detail sidebar OR main is visible, never both. */
361+
/* Mobile master/detail: sidebar OR main is visible, never both. */
362362
@media (max-width: 600px) {
363363
:host {
364364
flex-direction: column;

0 commit comments

Comments
 (0)