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:
Fabian Affolter 2017-05-02 18:18:47 +02:00 committed by Paulus Schoutsen
parent 0e08925259
commit a4f1f6e724
340 changed files with 1533 additions and 1708 deletions

View file

@ -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.