This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Zooz ZEN34 | |
description: Automations helper for the Zooz ZEN34 S2 Switch using the Zwave | |
JS integration. | |
domain: automation | |
input: | |
zooz_zen34: | |
name: Zooz ZEN34 | |
description: The ZEN34 Switch to interact with. | |
selector: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import functools | |
import inspect | |
import warnings | |
def deprecate_posargs(category): | |
""" | |
Function/method decorator to deprecate some or all positional arguments. | |
The decorated function will map any positional arguments after the `*` | |
to the corresponding keyword arguments, but issue a deprecation warning. |
OlderNewer