This commit is contained in:
J. Nick Koston 2024-10-14 04:04:47 -05:00
parent 8b667b86c3
commit cd62e9fd8f
No known key found for this signature in database

View file

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