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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user