mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Some Z-Wave fixes
This commit is contained in:
parent
8ff1bcf242
commit
569b15d790
@ -120,6 +120,8 @@ class ZWaveMultilevelSensor(ZWaveSensor):
|
|||||||
|
|
||||||
if self._value.units in ('C', 'F'):
|
if self._value.units in ('C', 'F'):
|
||||||
return round(value, 1)
|
return round(value, 1)
|
||||||
|
elif isinstance(value, float):
|
||||||
|
return round(value, 2)
|
||||||
|
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
@ -81,9 +81,9 @@ def setup(hass, config):
|
|||||||
|
|
||||||
if use_debug:
|
if use_debug:
|
||||||
def log_all(signal, value=None):
|
def log_all(signal, value=None):
|
||||||
""" Log all the louie signals. """
|
""" Log all the signals. """
|
||||||
print("")
|
print("")
|
||||||
print("LOUIE SIGNAL *****", signal)
|
print("SIGNAL *****", signal)
|
||||||
if value and signal in (ZWaveNetwork.SIGNAL_VALUE_CHANGED,
|
if value and signal in (ZWaveNetwork.SIGNAL_VALUE_CHANGED,
|
||||||
ZWaveNetwork.SIGNAL_VALUE_ADDED):
|
ZWaveNetwork.SIGNAL_VALUE_ADDED):
|
||||||
pprint(_obj_to_dict(value))
|
pprint(_obj_to_dict(value))
|
||||||
|
@ -19,7 +19,7 @@ if [ -d python-openzwave ]; then
|
|||||||
git pull --recurse-submodules=yes
|
git pull --recurse-submodules=yes
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
else
|
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
|
cd python-openzwave
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user