mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 18:18:21 +00:00
Fix Non-thread-safe operation in logbook (#62148)
This commit is contained in:
parent
82173f477c
commit
19a0644b50
@ -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