Collection of code styling tweaks (#87381)
This commit is contained in:
parent
e55f11296e
commit
3d557b5583
52 changed files with 274 additions and 156 deletions
|
@ -69,7 +69,8 @@ class TriggerInstance:
|
|||
event_config = event_trigger.TRIGGER_SCHEMA(event_config)
|
||||
if self.remove:
|
||||
self.remove()
|
||||
# Note: No lock needed, event_trigger.async_attach_trigger is an synchronous function
|
||||
# Note: No lock needed, event_trigger.async_attach_trigger
|
||||
# is an synchronous function
|
||||
self.remove = await event_trigger.async_attach_trigger(
|
||||
self.trigger.hass,
|
||||
event_config,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue