Use US_CUSTOMARY_SYSTEM in tests (#80658)
* Use US_CUSTOMARY_SYSTEM in tests * Don't update test_unit_system
This commit is contained in:
parent
4e4682d2e0
commit
e84e5f134e
23 changed files with 147 additions and 93 deletions
|
@ -16,7 +16,7 @@ from homeassistant.const import (
|
|||
PRESSURE_PSI,
|
||||
)
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
from homeassistant.util.unit_system import IMPERIAL_SYSTEM
|
||||
from homeassistant.util.unit_system import US_CUSTOMARY_SYSTEM
|
||||
|
||||
from . import init_integration
|
||||
|
||||
|
@ -132,7 +132,7 @@ async def test_sensors(hass):
|
|||
|
||||
async def test_sensors_imperial_units(hass):
|
||||
"""Test that the sensors work properly with imperial units."""
|
||||
hass.config.units = IMPERIAL_SYSTEM
|
||||
hass.config.units = US_CUSTOMARY_SYSTEM
|
||||
|
||||
await init_integration(hass)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue