mirror of
https://github.com/home-assistant/core.git
synced 2026-04-20 16:39:02 +02:00
Fix Jewish calendar month semantic to "standard order" (#154905)
This commit is contained in:
@@ -65,7 +65,7 @@ INFO_SENSORS: tuple[JewishCalendarSensorDescription, ...] = (
|
||||
attr_fn=lambda info: {
|
||||
"hebrew_year": str(info.hdate.year),
|
||||
"hebrew_month_name": str(info.hdate.month),
|
||||
"hebrew_month_order": str(info.hdate.month.value),
|
||||
"hebrew_month_standard_order": str(info.hdate.month.value),
|
||||
"hebrew_month_biblical_order": str(info.hdate.month.biblical_order),
|
||||
"hebrew_day": str(info.hdate.day),
|
||||
},
|
||||
|
||||
@@ -26,9 +26,11 @@
|
||||
"state_attributes": {
|
||||
"hebrew_year": { "name": "Hebrew year" },
|
||||
"hebrew_month_name": { "name": "Hebrew month name" },
|
||||
"hebrew_month_order": { "name": "Hebrew month order" },
|
||||
"hebrew_month_standard_order": {
|
||||
"name": "Hebrew month in standard order"
|
||||
},
|
||||
"hebrew_month_biblical_order": {
|
||||
"name": "Hebrew month biblical order"
|
||||
"name": "Hebrew month in biblical order"
|
||||
},
|
||||
"hebrew_day": { "name": "Hebrew day" }
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ TEST_PARAMS = [
|
||||
"attr": {
|
||||
"hebrew_year": "5779",
|
||||
"hebrew_month_name": "מרחשוון",
|
||||
"hebrew_month_order": "2",
|
||||
"hebrew_month_standard_order": "2",
|
||||
"hebrew_month_biblical_order": "8",
|
||||
"hebrew_day": "6",
|
||||
"friendly_name": "Jewish Calendar Date",
|
||||
|
||||
Reference in New Issue
Block a user