add_devices -> add_entities (#16171)
* add_devices -> add_entities * Lint * PyLint * Revert external method in scsgate
This commit is contained in:
1 parent
37fd438717
commit
994b829cb4
839 files changed
+2121
-2008
No files matched your search
@@ -3,10 +3,10 @@
|
||||
from homeassistant.components.image_processing import ImageProcessingEntity
|
||||
|
||||
|
||||
async def async_setup_platform(hass, config, async_add_devices_callback,
|
||||
async def async_setup_platform(hass, config, async_add_entities_callback,
|
||||
discovery_info=None):
|
||||
"""Set up the test image_processing platform."""
|
||||
async_add_devices_callback([
|
||||
async_add_entities_callback([
|
||||
TestImageProcessing('camera.demo_camera', "Test")])
|
||||
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ def init(empty=False):
|
||||
]
|
||||
|
||||
|
||||
async def async_setup_platform(hass, config, async_add_devices_callback,
|
||||
async def async_setup_platform(hass, config, async_add_entities_callback,
|
||||
discovery_info=None):
|
||||
"""Return mock devices."""
|
||||
async_add_devices_callback(DEVICES)
|
||||
async_add_entities_callback(DEVICES)
|
||||
@@ -21,7 +21,7 @@ def init(empty=False):
|
||||
]
|
||||
|
||||
|
||||
async def async_setup_platform(hass, config, async_add_devices_callback,
|
||||
async def async_setup_platform(hass, config, async_add_entities_callback,
|
||||
discovery_info=None):
|
||||
"""Find and return test switches."""
|
||||
async_add_devices_callback(DEVICES)
|
||||
async_add_entities_callback(DEVICES)
|
||||
Reference in new issue
Block a user