Add snapshot assertion to Airzone (#98760)

Co-authored-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
Joost Lekkerkerker 2023-08-30 17:11:55 +02:00 committed by GitHub
parent 2ee55f5086
commit a5dcc25aab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 700 additions and 74 deletions

View file

@ -1,5 +1,6 @@
"""The sensor tests for the Airzone platform."""
import copy
from unittest.mock import patch
from aioairzone.const import API_DATA, API_SYSTEMS
@ -87,7 +88,7 @@ async def test_airzone_sensors_availability(
await async_init_integration(hass)
HVAC_MOCK_UNAVAILABLE_ZONE = {**HVAC_MOCK}
HVAC_MOCK_UNAVAILABLE_ZONE = copy.deepcopy(HVAC_MOCK)
del HVAC_MOCK_UNAVAILABLE_ZONE[API_SYSTEMS][0][API_DATA][1]
with patch(