Remove Z-Wave old/new entity_id attributes (#12652)
This commit is contained in:
parent
f164a5a65f
commit
dc8424032b
5 changed files with 19 additions and 98 deletions
|
@ -213,9 +213,7 @@ def test_node_discovery(hass, mock_openzwave):
|
|||
mock_receivers.append(receiver)
|
||||
|
||||
with patch('pydispatch.dispatcher.connect', new=mock_connect):
|
||||
yield from async_setup_component(hass, 'zwave', {'zwave': {
|
||||
'new_entity_ids': True,
|
||||
}})
|
||||
yield from async_setup_component(hass, 'zwave', {'zwave': {}})
|
||||
|
||||
assert len(mock_receivers) == 1
|
||||
|
||||
|
@ -237,7 +235,6 @@ def test_node_ignored(hass, mock_openzwave):
|
|||
|
||||
with patch('pydispatch.dispatcher.connect', new=mock_connect):
|
||||
yield from async_setup_component(hass, 'zwave', {'zwave': {
|
||||
'new_entity_ids': True,
|
||||
'device_config': {
|
||||
'zwave.mock_node': {
|
||||
'ignored': True,
|
||||
|
@ -262,9 +259,7 @@ def test_value_discovery(hass, mock_openzwave):
|
|||
mock_receivers.append(receiver)
|
||||
|
||||
with patch('pydispatch.dispatcher.connect', new=mock_connect):
|
||||
yield from async_setup_component(hass, 'zwave', {'zwave': {
|
||||
'new_entity_ids': True,
|
||||
}})
|
||||
yield from async_setup_component(hass, 'zwave', {'zwave': {}})
|
||||
|
||||
assert len(mock_receivers) == 1
|
||||
|
||||
|
@ -289,9 +284,7 @@ def test_value_discovery_existing_entity(hass, mock_openzwave):
|
|||
mock_receivers.append(receiver)
|
||||
|
||||
with patch('pydispatch.dispatcher.connect', new=mock_connect):
|
||||
yield from async_setup_component(hass, 'zwave', {'zwave': {
|
||||
'new_entity_ids': True,
|
||||
}})
|
||||
yield from async_setup_component(hass, 'zwave', {'zwave': {}})
|
||||
|
||||
assert len(mock_receivers) == 1
|
||||
|
||||
|
@ -336,9 +329,7 @@ def test_power_schemes(hass, mock_openzwave):
|
|||
mock_receivers.append(receiver)
|
||||
|
||||
with patch('pydispatch.dispatcher.connect', new=mock_connect):
|
||||
yield from async_setup_component(hass, 'zwave', {'zwave': {
|
||||
'new_entity_ids': True,
|
||||
}})
|
||||
yield from async_setup_component(hass, 'zwave', {'zwave': {}})
|
||||
|
||||
assert len(mock_receivers) == 1
|
||||
|
||||
|
@ -380,9 +371,7 @@ def test_network_ready(hass, mock_openzwave):
|
|||
mock_receivers.append(receiver)
|
||||
|
||||
with patch('pydispatch.dispatcher.connect', new=mock_connect):
|
||||
yield from async_setup_component(hass, 'zwave', {'zwave': {
|
||||
'new_entity_ids': True,
|
||||
}})
|
||||
yield from async_setup_component(hass, 'zwave', {'zwave': {}})
|
||||
|
||||
assert len(mock_receivers) == 1
|
||||
|
||||
|
@ -409,9 +398,7 @@ def test_network_complete(hass, mock_openzwave):
|
|||
mock_receivers.append(receiver)
|
||||
|
||||
with patch('pydispatch.dispatcher.connect', new=mock_connect):
|
||||
yield from async_setup_component(hass, 'zwave', {'zwave': {
|
||||
'new_entity_ids': True,
|
||||
}})
|
||||
yield from async_setup_component(hass, 'zwave', {'zwave': {}})
|
||||
|
||||
assert len(mock_receivers) == 1
|
||||
|
||||
|
@ -441,9 +428,7 @@ class TestZWaveDeviceEntityValues(unittest.TestCase):
|
|||
self.hass = get_test_home_assistant()
|
||||
self.hass.start()
|
||||
|
||||
setup_component(self.hass, 'zwave', {'zwave': {
|
||||
'new_entity_ids': True,
|
||||
}})
|
||||
setup_component(self.hass, 'zwave', {'zwave': {}})
|
||||
self.hass.block_till_done()
|
||||
|
||||
self.node = MockNode()
|
||||
|
@ -472,9 +457,7 @@ class TestZWaveDeviceEntityValues(unittest.TestCase):
|
|||
command_class='mock_bad_class', node=self.node)
|
||||
|
||||
self.entity_id = 'mock_component.mock_node_mock_value'
|
||||
self.zwave_config = {'zwave': {
|
||||
'new_entity_ids': True,
|
||||
}}
|
||||
self.zwave_config = {'zwave': {}}
|
||||
self.device_config = {self.entity_id: {}}
|
||||
|
||||
def tearDown(self): # pylint: disable=invalid-name
|
||||
|
@ -781,9 +764,7 @@ class TestZWaveServices(unittest.TestCase):
|
|||
self.hass.start()
|
||||
|
||||
# Initialize zwave
|
||||
setup_component(self.hass, 'zwave', {'zwave': {
|
||||
'new_entity_ids': True,
|
||||
}})
|
||||
setup_component(self.hass, 'zwave', {'zwave': {}})
|
||||
self.hass.block_till_done()
|
||||
self.zwave_network = self.hass.data[DATA_NETWORK]
|
||||
self.zwave_network.state = MockNetwork.STATE_READY
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue