Bump hdate to 1.1.2 (#146659)

This commit is contained in:
Tsvi Mostovicz
2025-06-12 20:29:47 +03:00
committed by GitHub
parent 680b70aa29
commit 7e6bb021ce
4 changed files with 6 additions and 10 deletions

View File

@ -6,6 +6,6 @@
"documentation": "https://www.home-assistant.io/integrations/jewish_calendar",
"iot_class": "calculated",
"loggers": ["hdate"],
"requirements": ["hdate[astral]==1.1.1"],
"requirements": ["hdate[astral]==1.1.2"],
"single_config_entry": true
}

View File

@ -73,7 +73,7 @@ INFO_SENSORS: tuple[JewishCalendarSensorDescription, ...] = (
translation_key="weekly_portion",
device_class=SensorDeviceClass.ENUM,
options_fn=lambda _: [str(p) for p in Parasha],
value_fn=lambda results: str(results.after_tzais_date.upcoming_shabbat.parasha),
value_fn=lambda results: results.after_tzais_date.upcoming_shabbat.parasha,
),
JewishCalendarSensorDescription(
key="holiday",
@ -98,17 +98,13 @@ INFO_SENSORS: tuple[JewishCalendarSensorDescription, ...] = (
key="omer_count",
translation_key="omer_count",
entity_registry_enabled_default=False,
value_fn=lambda results: (
results.after_shkia_date.omer.total_days
if results.after_shkia_date.omer
else 0
),
value_fn=lambda results: results.after_shkia_date.omer.total_days,
),
JewishCalendarSensorDescription(
key="daf_yomi",
translation_key="daf_yomi",
entity_registry_enabled_default=False,
value_fn=lambda results: str(results.daytime_date.daf_yomi),
value_fn=lambda results: results.daytime_date.daf_yomi,
),
)

2
requirements_all.txt generated
View File

@ -1133,7 +1133,7 @@ hass-splunk==0.1.1
hassil==2.2.3
# homeassistant.components.jewish_calendar
hdate[astral]==1.1.1
hdate[astral]==1.1.2
# homeassistant.components.heatmiser
heatmiserV3==2.0.3

View File

@ -988,7 +988,7 @@ hass-nabucasa==0.101.0
hassil==2.2.3
# homeassistant.components.jewish_calendar
hdate[astral]==1.1.1
hdate[astral]==1.1.2
# homeassistant.components.here_travel_time
here-routing==1.0.1