fix test
This commit is contained in:
parent
8b667b86c3
commit
cd62e9fd8f
1 changed files with 2 additions and 2 deletions
|
@ -2692,7 +2692,7 @@ async def test_write_state_bool_to_int(
|
|||
ent.async_write_ha_state()
|
||||
assert hass.states.get(ent.entity_id).attributes["attr"] is one
|
||||
assert len(events) == 3
|
||||
assert events[2].data["new_state"].attributes["attr"] is True
|
||||
assert events[2].data["new_state"].attributes["attr"] is one
|
||||
|
||||
|
||||
@pytest.mark.xfail(reason="Fails because 1 == True")
|
||||
|
@ -2728,4 +2728,4 @@ async def test_write_state_bool_to_int_using_attrs(
|
|||
ent.async_write_ha_state()
|
||||
assert hass.states.get(ent.entity_id).attributes["attr"] is one
|
||||
assert len(events) == 3
|
||||
assert events[2].data["new_state"].attributes["attr"] is True
|
||||
assert events[2].data["new_state"].attributes["attr"] is one
|
||||
|
|
Loading…
Add table
Reference in a new issue