Fix translations for binary_sensor triggers (#27330)
This commit is contained in:
parent
cf555428d0
commit
0cfd0388d6
2 changed files with 10 additions and 10 deletions
|
@ -81,8 +81,8 @@ CONF_SOUND = "sound"
|
|||
CONF_NO_SOUND = "no_sound"
|
||||
CONF_VIBRATION = "vibration"
|
||||
CONF_NO_VIBRATION = "no_vibration"
|
||||
CONF_OPEN = "open"
|
||||
CONF_NOT_OPEN = "not_open"
|
||||
CONF_OPENED = "opened"
|
||||
CONF_NOT_OPENED = "not_opened"
|
||||
|
||||
|
||||
TURNED_ON = [
|
||||
|
@ -97,7 +97,7 @@ TURNED_ON = [
|
|||
CONF_MOTION,
|
||||
CONF_MOVING,
|
||||
CONF_OCCUPIED,
|
||||
CONF_OPEN,
|
||||
CONF_OPENED,
|
||||
CONF_PLUGGED_IN,
|
||||
CONF_POWERED,
|
||||
CONF_PRESENT,
|
||||
|
@ -118,7 +118,7 @@ TURNED_OFF = [
|
|||
CONF_NOT_MOIST,
|
||||
CONF_NOT_MOVING,
|
||||
CONF_NOT_OCCUPIED,
|
||||
CONF_NOT_OPEN,
|
||||
CONF_NOT_OPENED,
|
||||
CONF_NOT_PLUGGED_IN,
|
||||
CONF_NOT_POWERED,
|
||||
CONF_NOT_PRESENT,
|
||||
|
@ -141,8 +141,8 @@ ENTITY_TRIGGERS = {
|
|||
{CONF_TYPE: CONF_CONNECTED},
|
||||
{CONF_TYPE: CONF_NOT_CONNECTED},
|
||||
],
|
||||
DEVICE_CLASS_DOOR: [{CONF_TYPE: CONF_OPEN}, {CONF_TYPE: CONF_NOT_OPEN}],
|
||||
DEVICE_CLASS_GARAGE_DOOR: [{CONF_TYPE: CONF_OPEN}, {CONF_TYPE: CONF_NOT_OPEN}],
|
||||
DEVICE_CLASS_DOOR: [{CONF_TYPE: CONF_OPENED}, {CONF_TYPE: CONF_NOT_OPENED}],
|
||||
DEVICE_CLASS_GARAGE_DOOR: [{CONF_TYPE: CONF_OPENED}, {CONF_TYPE: CONF_NOT_OPENED}],
|
||||
DEVICE_CLASS_GAS: [{CONF_TYPE: CONF_GAS}, {CONF_TYPE: CONF_NO_GAS}],
|
||||
DEVICE_CLASS_HEAT: [{CONF_TYPE: CONF_HOT}, {CONF_TYPE: CONF_NOT_HOT}],
|
||||
DEVICE_CLASS_LIGHT: [{CONF_TYPE: CONF_LIGHT}, {CONF_TYPE: CONF_NO_LIGHT}],
|
||||
|
@ -154,7 +154,7 @@ ENTITY_TRIGGERS = {
|
|||
{CONF_TYPE: CONF_OCCUPIED},
|
||||
{CONF_TYPE: CONF_NOT_OCCUPIED},
|
||||
],
|
||||
DEVICE_CLASS_OPENING: [{CONF_TYPE: CONF_OPEN}, {CONF_TYPE: CONF_NOT_OPEN}],
|
||||
DEVICE_CLASS_OPENING: [{CONF_TYPE: CONF_OPENED}, {CONF_TYPE: CONF_NOT_OPENED}],
|
||||
DEVICE_CLASS_PLUG: [{CONF_TYPE: CONF_PLUGGED_IN}, {CONF_TYPE: CONF_NOT_PLUGGED_IN}],
|
||||
DEVICE_CLASS_POWER: [{CONF_TYPE: CONF_POWERED}, {CONF_TYPE: CONF_NOT_POWERED}],
|
||||
DEVICE_CLASS_PRESENCE: [{CONF_TYPE: CONF_PRESENT}, {CONF_TYPE: CONF_NOT_PRESENT}],
|
||||
|
@ -166,7 +166,7 @@ ENTITY_TRIGGERS = {
|
|||
{CONF_TYPE: CONF_VIBRATION},
|
||||
{CONF_TYPE: CONF_NO_VIBRATION},
|
||||
],
|
||||
DEVICE_CLASS_WINDOW: [{CONF_TYPE: CONF_OPEN}, {CONF_TYPE: CONF_NOT_OPEN}],
|
||||
DEVICE_CLASS_WINDOW: [{CONF_TYPE: CONF_OPENED}, {CONF_TYPE: CONF_NOT_OPENED}],
|
||||
DEVICE_CLASS_NONE: [{CONF_TYPE: CONF_TURNED_ON}, {CONF_TYPE: CONF_TURNED_OFF}],
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
"no_light": "{entity_name} stopped detecting light",
|
||||
"locked": "{entity_name} locked",
|
||||
"not_locked": "{entity_name} unlocked",
|
||||
"moist§": "{entity_name} became moist",
|
||||
"moist": "{entity_name} became moist",
|
||||
"not_moist": "{entity_name} became dry",
|
||||
"motion": "{entity_name} started detecting motion",
|
||||
"no_motion": "{entity_name} stopped detecting motion",
|
||||
|
@ -84,7 +84,7 @@
|
|||
"vibration": "{entity_name} started detecting vibration",
|
||||
"no_vibration": "{entity_name} stopped detecting vibration",
|
||||
"opened": "{entity_name} opened",
|
||||
"closed": "{entity_name} closed",
|
||||
"not_opened": "{entity_name} closed",
|
||||
"turned_on": "{entity_name} turned on",
|
||||
"turned_off": "{entity_name} turned off"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue