mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 10:48:01 +02:00
Improve lists in integrations [T-U] (#113243)
This commit is contained in:
committed by
GitHub
parent
cdba14acd4
commit
96cebdf096
@ -196,20 +196,16 @@ def setup_platform(
|
||||
labels, use_display_name=True
|
||||
)
|
||||
|
||||
entities = []
|
||||
|
||||
for camera in config[CONF_SOURCE]:
|
||||
entities.append(
|
||||
TensorFlowImageProcessor(
|
||||
hass,
|
||||
camera[CONF_ENTITY_ID],
|
||||
camera.get(CONF_NAME),
|
||||
category_index,
|
||||
config,
|
||||
)
|
||||
add_entities(
|
||||
TensorFlowImageProcessor(
|
||||
hass,
|
||||
camera[CONF_ENTITY_ID],
|
||||
camera.get(CONF_NAME),
|
||||
category_index,
|
||||
config,
|
||||
)
|
||||
|
||||
add_entities(entities)
|
||||
for camera in config[CONF_SOURCE]
|
||||
)
|
||||
|
||||
|
||||
class TensorFlowImageProcessor(ImageProcessingEntity):
|
||||
|
Reference in New Issue
Block a user