Update bind_hass docstring to discourage its use (#96933)
parent
14b553ddbc
commit
f809ce9033
|
@ -1098,7 +1098,11 @@ class Helpers:
|
|||
|
||||
|
||||
def bind_hass(func: _CallableT) -> _CallableT:
|
||||
"""Decorate function to indicate that first argument is hass."""
|
||||
"""Decorate function to indicate that first argument is hass.
|
||||
|
||||
The use of this decorator is discouraged, and it should not be used
|
||||
for new functions.
|
||||
"""
|
||||
setattr(func, "__bind_hass", True)
|
||||
return func
|
||||
|
||||
|
|
Loading…
Reference in New Issue