add_devices -> add_entities (#16171)
* add_devices -> add_entities * Lint * PyLint * Revert external method in scsgate
This commit is contained in:
parent
37fd438717
commit
994b829cb4
839 changed files with 2121 additions and 2008 deletions
|
@ -143,9 +143,9 @@ class TestHelpersEntityComponent(unittest.TestCase):
|
|||
'async_track_time_interval')
|
||||
def test_set_scan_interval_via_config(self, mock_track):
|
||||
"""Test the setting of the scan interval via configuration."""
|
||||
def platform_setup(hass, config, add_devices, discovery_info=None):
|
||||
def platform_setup(hass, config, add_entities, discovery_info=None):
|
||||
"""Test the platform setup."""
|
||||
add_devices([MockEntity(should_poll=True)])
|
||||
add_entities([MockEntity(should_poll=True)])
|
||||
|
||||
loader.set_component(self.hass, 'test_domain.platform',
|
||||
MockPlatform(platform_setup))
|
||||
|
@ -165,9 +165,9 @@ class TestHelpersEntityComponent(unittest.TestCase):
|
|||
|
||||
def test_set_entity_namespace_via_config(self):
|
||||
"""Test setting an entity namespace."""
|
||||
def platform_setup(hass, config, add_devices, discovery_info=None):
|
||||
def platform_setup(hass, config, add_entities, discovery_info=None):
|
||||
"""Test the platform setup."""
|
||||
add_devices([
|
||||
add_entities([
|
||||
MockEntity(name='beer'),
|
||||
MockEntity(name=None),
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue