Remove unrelated patching from scrape test (#113951)

https://github.com/home-assistant/core/pull/105516#discussion_r1534459365

The fixture already is designed to go unavailable on the 3rd update
This commit is contained in:
J. Nick Koston
2024-03-21 08:54:24 -10:00
committed by GitHub
parent 63221356f6
commit 8141a246b0

View File

@@ -615,13 +615,10 @@ async def test_availability(
hass.states.async_set("sensor.input1", "off")
await hass.async_block_till_done()
with patch(
"homeassistant.components.command_line.utils.subprocess.check_output",
return_value=b"0",
):
freezer.tick(timedelta(minutes=10))
async_fire_time_changed(hass)
await hass.async_block_till_done()
freezer.tick(timedelta(minutes=10))
async_fire_time_changed(hass)
await hass.async_block_till_done()
state = hass.states.get("sensor.current_version")
assert state.state == STATE_UNAVAILABLE