mirror of
https://github.com/home-assistant/core.git
synced 2025-12-27 14:31:13 +00:00
Use US_CUSTOMARY_SYSTEM in tests (#80658)
* Use US_CUSTOMARY_SYSTEM in tests * Don't update test_unit_system
This commit is contained in:
@@ -30,7 +30,7 @@ from homeassistant.const import STATE_UNKNOWN, TEMP_FAHRENHEIT
|
||||
from homeassistant.core import Context
|
||||
from homeassistant.helpers import entityfilter
|
||||
from homeassistant.setup import async_setup_component
|
||||
from homeassistant.util.unit_system import IMPERIAL_SYSTEM
|
||||
from homeassistant.util.unit_system import US_CUSTOMARY_SYSTEM
|
||||
|
||||
from .test_common import (
|
||||
MockConfig,
|
||||
@@ -2020,7 +2020,7 @@ async def test_unknown_sensor(hass):
|
||||
|
||||
async def test_thermostat(hass):
|
||||
"""Test thermostat discovery."""
|
||||
hass.config.units = IMPERIAL_SYSTEM
|
||||
hass.config.units = US_CUSTOMARY_SYSTEM
|
||||
device = (
|
||||
"climate.test_thermostat",
|
||||
"cool",
|
||||
|
||||
Reference in New Issue
Block a user