By default don't enable all sensors

This commit is contained in:
Tsvi Mostovicz
2024-06-17 09:18:21 +00:00
parent 826587abb2
commit 2469d2ccc3
2 changed files with 18 additions and 0 deletions

View File

@@ -55,11 +55,13 @@ BINARY_SENSORS: tuple[JewishCalendarBinarySensorEntityDescription, ...] = (
key="erev_shabbat_hag", key="erev_shabbat_hag",
name="Erev Shabbat/Hag", name="Erev Shabbat/Hag",
is_on=lambda state: bool(state.erev_shabbat_chag), is_on=lambda state: bool(state.erev_shabbat_chag),
entity_registry_enabled_default=False,
), ),
JewishCalendarBinarySensorEntityDescription( JewishCalendarBinarySensorEntityDescription(
key="motzei_shabbat_hag", key="motzei_shabbat_hag",
name="Motzei Shabbat/Hag", name="Motzei Shabbat/Hag",
is_on=lambda state: bool(state.motzei_shabbat_chag), is_on=lambda state: bool(state.motzei_shabbat_chag),
entity_registry_enabled_default=False,
), ),
) )

View File

@@ -54,11 +54,13 @@ INFO_SENSORS: tuple[SensorEntityDescription, ...] = (
key="omer_count", key="omer_count",
name="Day of the Omer", name="Day of the Omer",
icon="mdi:counter", icon="mdi:counter",
entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="daf_yomi", key="daf_yomi",
name="Daf Yomi", name="Daf Yomi",
icon="mdi:book-open-variant", icon="mdi:book-open-variant",
entity_registry_enabled_default=False,
), ),
) )
@@ -67,11 +69,13 @@ TIME_SENSORS: tuple[SensorEntityDescription, ...] = (
key="first_light", key="first_light",
name="Alot Hashachar", # codespell:ignore alot name="Alot Hashachar", # codespell:ignore alot
icon="mdi:weather-sunset-up", icon="mdi:weather-sunset-up",
entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="talit", key="talit",
name="Talit and Tefillin", name="Talit and Tefillin",
icon="mdi:calendar-clock", icon="mdi:calendar-clock",
entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="sunrise", key="sunrise",
@@ -82,41 +86,49 @@ TIME_SENSORS: tuple[SensorEntityDescription, ...] = (
key="gra_end_shma", key="gra_end_shma",
name='Latest time for Shma Gr"a', name='Latest time for Shma Gr"a',
icon="mdi:calendar-clock", icon="mdi:calendar-clock",
entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="mga_end_shma", key="mga_end_shma",
name='Latest time for Shma MG"A', name='Latest time for Shma MG"A',
icon="mdi:calendar-clock", icon="mdi:calendar-clock",
entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="gra_end_tfila", key="gra_end_tfila",
name='Latest time for Tefilla Gr"a', name='Latest time for Tefilla Gr"a',
icon="mdi:calendar-clock", icon="mdi:calendar-clock",
entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="mga_end_tfila", key="mga_end_tfila",
name='Latest time for Tefilla MG"A', name='Latest time for Tefilla MG"A',
icon="mdi:calendar-clock", icon="mdi:calendar-clock",
entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="midday", key="midday",
name="Chatzot Hayom", name="Chatzot Hayom",
icon="mdi:calendar-clock", icon="mdi:calendar-clock",
entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="big_mincha", key="big_mincha",
name="Mincha Gedola", name="Mincha Gedola",
icon="mdi:calendar-clock", icon="mdi:calendar-clock",
entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="small_mincha", key="small_mincha",
name="Mincha Ketana", name="Mincha Ketana",
icon="mdi:calendar-clock", icon="mdi:calendar-clock",
entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="plag_mincha", key="plag_mincha",
name="Plag Hamincha", name="Plag Hamincha",
icon="mdi:weather-sunset-down", icon="mdi:weather-sunset-down",
entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="sunset", key="sunset",
@@ -127,21 +139,25 @@ TIME_SENSORS: tuple[SensorEntityDescription, ...] = (
key="first_stars", key="first_stars",
name="T'set Hakochavim", name="T'set Hakochavim",
icon="mdi:weather-night", icon="mdi:weather-night",
entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="three_stars", key="three_stars",
name="T'set Hakochavim, 3 stars", name="T'set Hakochavim, 3 stars",
icon="mdi:weather-night", icon="mdi:weather-night",
entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="upcoming_shabbat_candle_lighting", key="upcoming_shabbat_candle_lighting",
name="Upcoming Shabbat Candle Lighting", name="Upcoming Shabbat Candle Lighting",
icon="mdi:candle", icon="mdi:candle",
entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="upcoming_shabbat_havdalah", key="upcoming_shabbat_havdalah",
name="Upcoming Shabbat Havdalah", name="Upcoming Shabbat Havdalah",
icon="mdi:weather-night", icon="mdi:weather-night",
entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="upcoming_candle_lighting", key="upcoming_candle_lighting",