Update docstrings (#7374)
* Update docstrings * Update docstrings * Update docstrings * Update docstrings * Update docstrings * Update docstrings * Update docstring * Update docstrings * Update docstrings * Fix lint issues * Update docstrings * Revert changes in dict
This commit is contained in:
parent
0e08925259
commit
a4f1f6e724
340 changed files with 1533 additions and 1708 deletions
|
@ -1,5 +1,4 @@
|
|||
"""Deprecation helpers for Home Assistant."""
|
||||
|
||||
import inspect
|
||||
import logging
|
||||
|
||||
|
@ -13,9 +12,9 @@ def deprecated_substitute(substitute_name):
|
|||
warning will be issued alerting the user of the impending change.
|
||||
"""
|
||||
def decorator(func):
|
||||
"""Decorator function."""
|
||||
"""Decorate function as deprecated."""
|
||||
def func_wrapper(self):
|
||||
"""Wrapper for original function."""
|
||||
"""Wrap for the original function."""
|
||||
if hasattr(self, substitute_name):
|
||||
# If this platform is still using the old property, issue
|
||||
# a logger warning once with instructions on how to fix it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue