python-openzwave
python-openzwave copied to clipboard
Is this comment spurious
In the file src-api/openzwave/command.py
, the class ZWaveNodeBasic(ZWaveNodeInterface)
, has this stanza at the beginning of a method:
"""
def get_power_level(self, value_id=None):
"""
The power level of this node.
The command 0x73 (COMMAND_CLASS_POWERLEVEL) of this node.
:param value_id: The value to retrieve state. If None, retrieve the first value
:type value_id: int
:return: The level of this battery
:rtype: int
"""
"""
Surely this command is to do with radio signal power and nothing to do with battery? If so, then the comment is misleading.
It is a mistake in the docstring. we are in the process of updating the library and this will be corrected. TY for pointing it out to us.