mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Use PyDispatcher instead of Louie
This commit is contained in:
parent
8bd803601f
commit
67161d686b
@ -63,7 +63,7 @@ def setup(hass, config):
|
|||||||
# pylint: disable=global-statement, import-error
|
# pylint: disable=global-statement, import-error
|
||||||
global NETWORK
|
global NETWORK
|
||||||
|
|
||||||
from louie import connect
|
from pydispatch import dispatcher
|
||||||
from openzwave.option import ZWaveOption
|
from openzwave.option import ZWaveOption
|
||||||
from openzwave.network import ZWaveNetwork
|
from openzwave.network import ZWaveNetwork
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ def setup(hass, config):
|
|||||||
pprint(_obj_to_dict(value))
|
pprint(_obj_to_dict(value))
|
||||||
print("")
|
print("")
|
||||||
|
|
||||||
connect(log_all, weak=False)
|
dispatcher.connect(log_all, weak=False)
|
||||||
|
|
||||||
def value_added(node, value):
|
def value_added(node, value):
|
||||||
""" Called when a value is added to a node on the network. """
|
""" Called when a value is added to a node on the network. """
|
||||||
@ -108,7 +108,7 @@ def setup(hass, config):
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
connect(
|
dispatcher.connect(
|
||||||
value_added, ZWaveNetwork.SIGNAL_VALUE_ADDED, weak=False)
|
value_added, ZWaveNetwork.SIGNAL_VALUE_ADDED, weak=False)
|
||||||
|
|
||||||
def stop_zwave(event):
|
def stop_zwave(event):
|
||||||
|
@ -30,5 +30,8 @@ pushbullet.py>=0.7.1
|
|||||||
# thermostat.nest
|
# thermostat.nest
|
||||||
python-nest>=2.1
|
python-nest>=2.1
|
||||||
|
|
||||||
|
# z-wave
|
||||||
|
pydispatcher>=2.0.5
|
||||||
|
|
||||||
# pyyaml
|
# pyyaml
|
||||||
pyyaml
|
pyyaml
|
||||||
|
@ -11,13 +11,6 @@ fi
|
|||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
# We need to install louie here or else python-openzwave install
|
|
||||||
# will download louie from PIP and that one is not compatible with Python 3
|
|
||||||
git clone https://github.com/balloob/louie.git
|
|
||||||
cd louie
|
|
||||||
python3 setup.py install
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
hg clone https://code.google.com/r/balloob-python-openzwave/
|
hg clone https://code.google.com/r/balloob-python-openzwave/
|
||||||
cd balloob-python-openzwave
|
cd balloob-python-openzwave
|
||||||
./update.sh
|
./update.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user