Some Z-Wave fixes

pull/67/head
Paulus Schoutsen 2015-03-18 19:15:48 -07:00
parent 8ff1bcf242
commit 569b15d790
3 changed files with 5 additions and 3 deletions

View File

@ -120,6 +120,8 @@ class ZWaveMultilevelSensor(ZWaveSensor):
if self._value.units in ('C', 'F'):
return round(value, 1)
elif isinstance(value, float):
return round(value, 2)
return value

View File

@ -81,9 +81,9 @@ def setup(hass, config):
if use_debug:
def log_all(signal, value=None):
""" Log all the louie signals. """
""" Log all the signals. """
print("")
print("LOUIE SIGNAL *****", signal)
print("SIGNAL *****", signal)
if value and signal in (ZWaveNetwork.SIGNAL_VALUE_CHANGED,
ZWaveNetwork.SIGNAL_VALUE_ADDED):
pprint(_obj_to_dict(value))

View File

@ -19,7 +19,7 @@ if [ -d python-openzwave ]; then
git pull --recurse-submodules=yes
git submodule update --init --recursive
else
git clone -b python-3-support --recursive https://github.com/balloob/python-openzwave.git
git clone --recursive https://github.com/balloob/python-openzwave.git
cd python-openzwave
fi