mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06:35 +00:00
Use const enums where possible (#10110)
This commit is contained in:
parent
e023d60be7
commit
597d4a0426
@ -3,7 +3,7 @@ import {
|
|||||||
HassEntityBase,
|
HassEntityBase,
|
||||||
} from "home-assistant-js-websocket";
|
} from "home-assistant-js-websocket";
|
||||||
|
|
||||||
export enum LightColorModes {
|
export const enum LightColorModes {
|
||||||
UNKNOWN = "unknown",
|
UNKNOWN = "unknown",
|
||||||
ONOFF = "onoff",
|
ONOFF = "onoff",
|
||||||
BRIGHTNESS = "brightness",
|
BRIGHTNESS = "brightness",
|
||||||
|
@ -2,7 +2,7 @@ import { UnsubscribeFunc } from "home-assistant-js-websocket";
|
|||||||
import { HomeAssistant } from "../types";
|
import { HomeAssistant } from "../types";
|
||||||
import { DeviceRegistryEntry } from "./device_registry";
|
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.
|
* 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;
|
label: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum NodeStatus {
|
export const enum NodeStatus {
|
||||||
Unknown,
|
Unknown,
|
||||||
Asleep,
|
Asleep,
|
||||||
Awake,
|
Awake,
|
||||||
|
@ -23,7 +23,7 @@ const DEFAULT_FILTER = "grayscale(100%)";
|
|||||||
const MAX_IMAGE_WIDTH = 640;
|
const MAX_IMAGE_WIDTH = 640;
|
||||||
const ASPECT_RATIO_DEFAULT = 9 / 16;
|
const ASPECT_RATIO_DEFAULT = 9 / 16;
|
||||||
|
|
||||||
enum LoadState {
|
const enum LoadState {
|
||||||
Loading = 1,
|
Loading = 1,
|
||||||
Loaded = 2,
|
Loaded = 2,
|
||||||
Error = 3,
|
Error = 3,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user