1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-23 20:39:01 +00:00

Use HTTPStatus instead of HTTP_ consts and magic values in comp.../[de]* (#57990)

This commit is contained in:
Ville Skyttä
2021-10-22 17:28:56 +03:00
committed by GitHub
parent c84fee7c6e
commit 8bc1509afa
15 changed files with 119 additions and 117 deletions

View File

@@ -1,4 +1,5 @@
"""The test for the Ecobee thermostat module."""
from http import HTTPStatus
from unittest import mock
import pytest
@@ -78,7 +79,7 @@ async def test_name(thermostat):
async def test_current_temperature(ecobee_fixture, thermostat):
"""Test current temperature."""
assert thermostat.current_temperature == 30
ecobee_fixture["runtime"]["actualTemperature"] = const.HTTP_NOT_FOUND
ecobee_fixture["runtime"]["actualTemperature"] = HTTPStatus.NOT_FOUND
assert thermostat.current_temperature == 40.4