Removal of extraneous parenthesis (#33637)
This commit is contained in:
1 parent
7d3c974747
commit
187b6525b4
15 files changed
+59
-80
No files matched your search
@@ -217,16 +217,14 @@ async def async_get_conditions(
|
||||
)
|
||||
|
||||
conditions.extend(
|
||||
(
|
||||
{
|
||||
**template,
|
||||
"condition": "device",
|
||||
"device_id": device_id,
|
||||
"entity_id": entry.entity_id,
|
||||
"domain": DOMAIN,
|
||||
}
|
||||
for template in templates
|
||||
)
|
||||
{
|
||||
**template,
|
||||
"condition": "device",
|
||||
"device_id": device_id,
|
||||
"entity_id": entry.entity_id,
|
||||
"domain": DOMAIN,
|
||||
}
|
||||
for template in templates
|
||||
)
|
||||
|
||||
return conditions
|
||||
|
||||
@@ -226,16 +226,14 @@ async def async_get_triggers(hass, device_id):
|
||||
)
|
||||
|
||||
triggers.extend(
|
||||
(
|
||||
{
|
||||
**automation,
|
||||
"platform": "device",
|
||||
"device_id": device_id,
|
||||
"entity_id": entry.entity_id,
|
||||
"domain": DOMAIN,
|
||||
}
|
||||
for automation in templates
|
||||
)
|
||||
{
|
||||
**automation,
|
||||
"platform": "device",
|
||||
"device_id": device_id,
|
||||
"entity_id": entry.entity_id,
|
||||
"domain": DOMAIN,
|
||||
}
|
||||
for automation in templates
|
||||
)
|
||||
|
||||
return triggers
|
||||
|
||||
Reference in new issue
Block a user