1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Use climate enums in modbus (#70693)

This commit is contained in:
epenet
2022-04-26 09:18:00 +02:00
committed by GitHub
parent 20f7e2f4d2
commit 09393d6f64
2 changed files with 7 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
import pytest
from homeassistant.components.climate import DOMAIN as CLIMATE_DOMAIN
from homeassistant.components.climate.const import HVAC_MODE_AUTO
from homeassistant.components.climate.const import HVACMode
from homeassistant.components.modbus.const import (
CONF_CLIMATES,
CONF_DATA_TYPE,
@@ -223,7 +223,7 @@ test_value.attributes = {ATTR_TEMPERATURE: 37}
async def test_restore_state_climate(hass, mock_test_state, mock_modbus):
"""Run test for sensor restore state."""
state = hass.states.get(ENTITY_ID)
assert state.state == HVAC_MODE_AUTO
assert state.state == HVACMode.AUTO
assert state.attributes[ATTR_TEMPERATURE] == 37