Skip to content

Commit 0072b64

Browse files
Update German translation for calendar event binary sensor and fix test cases
1 parent 807ed90 commit 0072b64

File tree

2 files changed

+52
-3
lines changed

2 files changed

+52
-3
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"config": {
3+
"step": {
4+
"user": {
5+
"title": "Calendar Event",
6+
"description": "Create a binary sensor that is on if the calendar event meets the criteria.",
7+
"data": {
8+
"name": "Name",
9+
"calendar_entity_id": "Calendar",
10+
"summary": "Summary",
11+
"comparison_method": "Comparison Method"
12+
},
13+
"data_description": {
14+
"calendar_entity_id": "The calendar entity to monitor for events.",
15+
"summary": "The calendar event summary text to match, matching will be case-insensitive.",
16+
"comparison_method": "How to match the summary text."
17+
}
18+
}
19+
}
20+
},
21+
"options": {
22+
"step": {
23+
"init": {
24+
"title": "Calendar Event Options",
25+
"description": "Configure the calendar event options.",
26+
"data": {
27+
"calendar_entity_id": "Calendar",
28+
"summary": "Summary",
29+
"comparison_method": "Comparison Method"
30+
},
31+
"data_description": {
32+
"calendar_entity_id": "The calendar entity to monitor for events.",
33+
"summary": "The calendar event summary text to match, matching will be case-insensitive.",
34+
"comparison_method": "How to match the summary text."
35+
}
36+
}
37+
}
38+
},
39+
"selector": {
40+
"comparison_method": {
41+
"options": {
42+
"contains": "Contains",
43+
"starts_with": "Starts with",
44+
"ends_with": "Ends with",
45+
"exactly": "Exactly"
46+
}
47+
}
48+
}
49+
}

tests/test_binary_sensor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ async def mock_calendar_entity(hass: HomeAssistant, entity_registry: er.EntityRe
5050
# Contains tests
5151
("contains", "meeting", "Team Meeting", True),
5252
("contains", "meeting", "Daily Standup", False),
53-
("contains", "doctor", "Doctor Appointment", True),
53+
("contains", "doctor", "Doctors Appointment", True),
5454
("contains", "vacation", "Back from vacation", True),
5555
("contains", "party", "Birthday celebration", False),
5656
# Starts with tests
5757
("starts_with", "meeting", "Meeting with client", True),
5858
("starts_with", "meeting", "Team Meeting", False),
59-
("starts_with", "doctor", "Doctor visit", True),
59+
("starts_with", "doctor", "Doctors visit", True),
6060
("starts_with", "appointment", "Doctor Appointment", False),
6161
# Ends with tests
6262
("ends_with", "meeting", "Daily Meeting", True),
@@ -333,7 +333,7 @@ async def test_binary_sensor_default_comparison_method(
333333
[
334334
# Contains tests
335335
("contains", "meeting", "Team Meeting", True),
336-
("contains", "MEETING", "team meeting", True), # Case insensitive
336+
("contains", "MEET", "team meeting", True), # Case insensitive
337337
("contains", "meeting", "Daily Standup", False),
338338
# Starts with tests
339339
("starts_with", "meeting", "Meeting with client", True),

0 commit comments

Comments
 (0)