mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix Non-thread-safe operation in logbook (#62148)
This commit is contained in:
parent
8bf58df624
commit
ccf8dcd14a
@ -112,6 +112,7 @@ def log_entry(hass, name, message, domain=None, entity_id=None, context=None):
|
|||||||
hass.add_job(async_log_entry, hass, name, message, domain, entity_id, context)
|
hass.add_job(async_log_entry, hass, name, message, domain, entity_id, context)
|
||||||
|
|
||||||
|
|
||||||
|
@callback
|
||||||
@bind_hass
|
@bind_hass
|
||||||
def async_log_entry(hass, name, message, domain=None, entity_id=None, context=None):
|
def async_log_entry(hass, name, message, domain=None, entity_id=None, context=None):
|
||||||
"""Add an entry to the logbook."""
|
"""Add an entry to the logbook."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user