diff --git a/src/configurationDefaults.ts b/src/configurationDefaults.ts index f9bd55f..385034a 100644 --- a/src/configurationDefaults.ts +++ b/src/configurationDefaults.ts @@ -166,6 +166,10 @@ export const ConfigurationDefaults: StrategyDefaults = { order: 2, hidden: false, }, + lock: { + order: 10, + hidden: false, + }, scene: { order: 9, hidden: false, diff --git a/src/translations/de.json b/src/translations/de.json index 303645f..a3c4320 100644 --- a/src/translations/de.json +++ b/src/translations/de.json @@ -40,7 +40,10 @@ "lights": "Leuchten" }, "lock": { - "locks": "Schlösser" + "locked": "Gesperrt", + "all_locks": "Alle Schlösser", + "locks": "Schlösser", + "unlocked": "Entsperrt" }, "media_player": { "media_players": "Wiedergabegeräte" diff --git a/src/translations/en.json b/src/translations/en.json index b93378e..80b9b63 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -40,7 +40,10 @@ "lights": "Lights" }, "lock": { - "locks": "Locks" + "all_locks": "All Locks", + "locked": "Locked", + "locks": "Locks", + "unlocked": "Unlocked" }, "media_player": { "media_players": "Media Players" diff --git a/src/translations/es.json b/src/translations/es.json index dc3db70..333024c 100644 --- a/src/translations/es.json +++ b/src/translations/es.json @@ -40,7 +40,10 @@ "lights": "Luces" }, "lock": { - "locks": "Candados" + "all_locks": "Todas las Candados", + "locked": "Locked", + "locks": "Candados", + "unlocked": "Desbloqueado" }, "media_player": { "media_players": "Reproductores Multimedia" diff --git a/src/translations/nl.json b/src/translations/nl.json index 90fbefc..dc53e97 100644 --- a/src/translations/nl.json +++ b/src/translations/nl.json @@ -40,7 +40,10 @@ "lights": "Lampen" }, "lock": { - "locks": "Sloten" + "all_locks": "Alle Sloten", + "locked": "Vergrendeld", + "locks": "Sloten", + "unlocked": "Ontgrendeld" }, "media_player": { "media_players": "Mediaspelers" diff --git a/src/types/strategy/strategy-generics.ts b/src/types/strategy/strategy-generics.ts index 3f340df..e36c380 100644 --- a/src/types/strategy/strategy-generics.ts +++ b/src/types/strategy/strategy-generics.ts @@ -45,7 +45,18 @@ const SUPPORTED_DOMAINS = [ * * This constant array defines the views that are supported by the strategy. */ -const SUPPORTED_VIEWS = ['camera', 'climate', 'cover', 'fan', 'home', 'light', 'scene', 'switch', 'vacuum'] as const; +const SUPPORTED_VIEWS = [ + 'camera', + 'climate', + 'cover', + 'fan', + 'home', + 'light', + 'lock', + 'scene', + 'switch', + 'vacuum', +] as const; /** * List of supported chips. @@ -245,7 +256,7 @@ export interface StrategyArea extends AreaRegistryEntry { * @property {boolean} fan_count - Chip to display the number of fans on. * @property {boolean} light_count - Chip to display the number of lights on. * @property {boolean} switch_count - Chip to display the number of switches on. - * @property {"auto" | `weather.${string}`} weather_entity - Entity id for the weather chip to use. + * @property {'auto' | `weather.${string}`} weather_entity - Entity id for the weather chip to use. * Accepts `weather.` ids or `auto` only. */ export interface ChipConfiguration { diff --git a/src/views/LockView.ts b/src/views/LockView.ts index 9011b16..4913396 100644 --- a/src/views/LockView.ts +++ b/src/views/LockView.ts @@ -7,13 +7,13 @@ import { localize } from '../utilities/localize'; import AbstractView from './AbstractView'; /** - * Lock View Class. + * Vacuum View Class. * * Used to create a view configuration for entities of the lock domain. */ class LockView extends AbstractView { /** The domain of the entities that the view is representing. */ - static readonly domain = 'lock' as const; + static readonly domain = 'vacuum' as const; /** Returns the default configuration object for the view. */ static getDefaultConfig(): ViewConfig {