python-openzwave icon indicating copy to clipboard operation
python-openzwave copied to clipboard

Is this comment spurious

Open timcoote opened this issue 5 years ago • 1 comments

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.

timcoote avatar Sep 12 '19 09:09 timcoote

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.

kdschlosser avatar Sep 12 '19 15:09 kdschlosser