Collection of code styling tweaks (#87381)

This commit is contained in:
Franck Nijhof 2023-02-04 18:52:26 +01:00 committed by GitHub
parent e55f11296e
commit 3d557b5583
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
52 changed files with 274 additions and 156 deletions

View file

@ -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,