Add zwave per-node entity. (#6690)

* Add zwave per-node entity.

* Disable lint import error

* Add tests for base class

* More tests

* More tests

* Sort .coveragerc

* more tests

* Move location, battery and wakeup to node entity

* More tests

* Cleanup

* Make zwave node entity visible by default

* Remove battery sensor

* Fix tests
This commit is contained in:
Andrey authored and Paulus Schoutsen committed 2017-03-23 08:37:20 -07:00
1 parent 20c5f9de4b
commit 8a86ec5b74
11 files changed
+408 -133

No files matched your search

+3 -1
View File
@@ -14,7 +14,7 @@ from homeassistant.components import mqtt
from .common import async_test_home_assistant, mock_coro
from .test_util.aiohttp import mock_aiohttp_client
from .mock.zwave import SIGNAL_VALUE_CHANGED
from .mock.zwave import SIGNAL_VALUE_CHANGED, SIGNAL_NODE, SIGNAL_NOTIFICATION
if os.environ.get('UVLOOP') == '1':
import uvloop
@@ -101,6 +101,8 @@ def mock_openzwave():
libopenzwave = base_mock.libopenzwave
libopenzwave.__file__ = 'test'
base_mock.network.ZWaveNetwork.SIGNAL_VALUE_CHANGED = SIGNAL_VALUE_CHANGED
base_mock.network.ZWaveNetwork.SIGNAL_NODE = SIGNAL_NODE
base_mock.network.ZWaveNetwork.SIGNAL_NOTIFICATION = SIGNAL_NOTIFICATION
with patch.dict('sys.modules', {
'libopenzwave': libopenzwave,