async def test_remove_room_quick_veto(manager: SystemManager, resp: aioresponses) -> None: url = urls.room_quick_veto(id="1", serial=SERIAL) resp.delete(url, status=200) await manager.remove_room_quick_veto("1") _assert_calls(1, manager, [url])
async def test_set_quick_veto_room(manager: SystemManager, resp: aioresponses) -> None: url = urls.room_quick_veto(serial=SERIAL, id="1") quick_veto = QuickVeto(100, 25) resp.put(url, status=200) await manager.set_room_quick_veto("1", quick_veto) _assert_calls(1, manager, [url])
async def test_quick_veto_temperature_room_rounded(manager: SystemManager, resp: aioresponses) -> None: url = urls.room_quick_veto(id="0", serial=SERIAL) payload = payloads.room_quick_veto(22.5, 180) resp.put(url, status=200) qveto = QuickVeto(180, 22.7) await manager.set_room_quick_veto("0", qveto) _assert_calls(1, manager, [url], [payload])