mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Make recorder execute avoid native conversion by default (#36938)
This commit is contained in:
@@ -47,7 +47,7 @@ def test_recorder_bad_execute(hass_recorder):
|
||||
|
||||
hass_recorder()
|
||||
|
||||
def to_native():
|
||||
def to_native(validate_entity_id=True):
|
||||
"""Rasie exception."""
|
||||
raise SQLAlchemyError()
|
||||
|
||||
@@ -57,6 +57,6 @@ def test_recorder_bad_execute(hass_recorder):
|
||||
with pytest.raises(SQLAlchemyError), patch(
|
||||
"homeassistant.components.recorder.time.sleep"
|
||||
) as e_mock:
|
||||
util.execute((mck1,))
|
||||
util.execute((mck1,), to_native=True)
|
||||
|
||||
assert e_mock.call_count == 2
|
||||
|
||||
Reference in New Issue
Block a user