Some Z-Wave fixes
parent
8ff1bcf242
commit
569b15d790
|
@ -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
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue