mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Disable Habitica deprecated entities by default (#123522)
Deprecated sensor task entites disable by default
This commit is contained in:
parent
52c0a09107
commit
b21b300625
@ -172,6 +172,7 @@ TASK_SENSOR_DESCRIPTION: tuple[HabitipyTaskSensorEntityDescription, ...] = (
|
|||||||
translation_key=HabitipySensorEntity.DAILIES,
|
translation_key=HabitipySensorEntity.DAILIES,
|
||||||
native_unit_of_measurement=UNIT_TASKS,
|
native_unit_of_measurement=UNIT_TASKS,
|
||||||
value_fn=lambda tasks: [r for r in tasks if r.get("type") == "daily"],
|
value_fn=lambda tasks: [r for r in tasks if r.get("type") == "daily"],
|
||||||
|
entity_registry_enabled_default=False,
|
||||||
),
|
),
|
||||||
HabitipyTaskSensorEntityDescription(
|
HabitipyTaskSensorEntityDescription(
|
||||||
key=HabitipySensorEntity.TODOS,
|
key=HabitipySensorEntity.TODOS,
|
||||||
@ -180,6 +181,7 @@ TASK_SENSOR_DESCRIPTION: tuple[HabitipyTaskSensorEntityDescription, ...] = (
|
|||||||
value_fn=lambda tasks: [
|
value_fn=lambda tasks: [
|
||||||
r for r in tasks if r.get("type") == "todo" and not r.get("completed")
|
r for r in tasks if r.get("type") == "todo" and not r.get("completed")
|
||||||
],
|
],
|
||||||
|
entity_registry_enabled_default=False,
|
||||||
),
|
),
|
||||||
HabitipyTaskSensorEntityDescription(
|
HabitipyTaskSensorEntityDescription(
|
||||||
key=HabitipySensorEntity.REWARDS,
|
key=HabitipySensorEntity.REWARDS,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user