openhab-scripters / openhab-helper-libraries

Scripts and modules for use with openHAB
Eclipse Public License 1.0
88 stars 70 forks source link

[utils] Rename postUpdateCheckFirst and sendCommandCheckFirst #185

Closed CrazyIvan359 closed 5 years ago

CrazyIvan359 commented 5 years ago

utils.py functions postUpdateCheckFirst and sendCommandCheckFirst do not have names particularly evident of their function. I suggest renaming them to postUpdateIfDifferent and sendCommandIfDifferent for clarity, and creating aliases for the old names to maintain backwards compatibility.