1
0
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:
J. Nick Koston
2020-06-21 23:58:57 -05:00
committed by GitHub
parent f4b8a95205
commit edad387b12
9 changed files with 42 additions and 35 deletions

View File

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