mirror of
https://github.com/Matysh/houseplan-card
synced 2026-08-01 00:48:29 +00:00
Glow is the default fill for new spaces, and leads the options list
Owner call: 'Свет по источникам' is the mode that sells the card, so a new space starts with it and the settings dialog offers it first. Deliberately NOT changed: the fallback for an absent fill_mode stays 'none' (spaceDisplayOf), so updating the card never repaints an existing plan whose owner made no choice. smoke_space_settings re-pinned to the new contract.
This commit is contained in:
+5
-1
@@ -617,7 +617,11 @@ export type TapAction = 'info' | 'more-info' | 'toggle' | 'run';
|
||||
export const DISPLAY_MODES = ['badge', 'ripple', 'icon_ripple', 'value'] as const;
|
||||
export const TAP_ACTIONS = ['info', 'more-info', 'toggle', 'run'] as const;
|
||||
/** Space-level fill: 'glow' is a whole-space light model, not a per-room one. */
|
||||
export const SPACE_FILL_MODES = ['none', 'lqi', 'light', 'temp', 'glow'] as const;
|
||||
// 'glow' leads: it is the default for new spaces since v1.54 — the owner's
|
||||
// call, it sells the card best. Existing configs keep whatever they chose;
|
||||
// an absent fill_mode still falls back to 'none' (spaceDisplayOf), so an
|
||||
// update never repaints somebody's plan.
|
||||
export const SPACE_FILL_MODES = ['glow', 'none', 'lqi', 'light', 'temp'] as const;
|
||||
export const ROOM_FILL_MODES = ['none', 'lqi', 'light', 'temp'] as const;
|
||||
|
||||
export const TOGGLE_SAFE_DOMAINS = new Set(['light', 'switch', 'fan', 'humidifier', 'cover', 'valve']);
|
||||
|
||||
Reference in New Issue
Block a user