Replies: 3 comments 2 replies
-
I propose to add an issue when a template binary_sensor returns
After a deprecation period (6 months? 1 year?), the issue would be removed and the behavior would be changed to no longer convert Suggested implementation PR: home-assistant/core#126909 |
Beta Was this translation helpful? Give feedback.
-
Another option is to do like we did in home-assistant/core#60193 and simply mark it as a breaking change, without a deprecation period. Suggested implementation PR: home-assistant/core#128861 |
Beta Was this translation helpful? Give feedback.
-
I thought of a third way of doing this, which can be used straight away (contrary to the first option) and is not hard breaking (contrary to second option)... This involves creating a dedicated function for returning a sentinel, which could be used either permanently, or temporarily in conjunction with option 1 or 2. Suggested implementation PR: home-assistant/core#128963 |
Beta Was this translation helpful? Give feedback.
-
In home-assistant/core#60193,
binary_sensors
were adjusted to be able to returnNone
(="unknown"
/STATE_UNKNOWN
)Sadly, this is not currently possible in template binary sensors.
I propose to add a deprecation/migration path for existing templates to allow this.
See also the note from home-assistant/core#126807 (comment)
Beta Was this translation helpful? Give feedback.
All reactions