mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +00:00
Use const enums where possible (#10110)
This commit is contained in:
parent
e023d60be7
commit
597d4a0426
@ -3,7 +3,7 @@ import {
|
||||
HassEntityBase,
|
||||
} from "home-assistant-js-websocket";
|
||||
|
||||
export enum LightColorModes {
|
||||
export const enum LightColorModes {
|
||||
UNKNOWN = "unknown",
|
||||
ONOFF = "onoff",
|
||||
BRIGHTNESS = "brightness",
|
||||
|
@ -2,7 +2,7 @@ import { UnsubscribeFunc } from "home-assistant-js-websocket";
|
||||
import { HomeAssistant } from "../types";
|
||||
import { DeviceRegistryEntry } from "./device_registry";
|
||||
|
||||
export enum InclusionStrategy {
|
||||
export const enum InclusionStrategy {
|
||||
/**
|
||||
* Always uses Security S2 if supported, otherwise uses Security S0 for certain devices which don't work without encryption and uses no encryption otherwise.
|
||||
*
|
||||
@ -154,7 +154,7 @@ export interface ZWaveJSRemovedNode {
|
||||
label: string;
|
||||
}
|
||||
|
||||
export enum NodeStatus {
|
||||
export const enum NodeStatus {
|
||||
Unknown,
|
||||
Asleep,
|
||||
Awake,
|
||||
|
@ -23,7 +23,7 @@ const DEFAULT_FILTER = "grayscale(100%)";
|
||||
const MAX_IMAGE_WIDTH = 640;
|
||||
const ASPECT_RATIO_DEFAULT = 9 / 16;
|
||||
|
||||
enum LoadState {
|
||||
const enum LoadState {
|
||||
Loading = 1,
|
||||
Loaded = 2,
|
||||
Error = 3,
|
||||
|
Loading…
x
Reference in New Issue
Block a user