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

Revert changes from #70300 part 2 (#70386)

This commit is contained in:
J. Nick Koston
2022-04-21 10:50:00 -10:00
committed by GitHub
parent 23de8d4156
commit f1b400feaf
9 changed files with 26 additions and 19 deletions

View File

@@ -30,6 +30,7 @@ from homeassistant.const import (
from homeassistant.helpers import entity_registry as er
from homeassistant.setup import async_setup_component
from homeassistant.util.dt import utcnow
from homeassistant.util.unit_system import IMPERIAL_SYSTEM
from tests.common import async_fire_time_changed, load_fixture
from tests.components.accuweather import init_integration
@@ -693,8 +694,9 @@ async def test_manual_update_entity(hass):
assert mock_forecast.call_count == 1
async def test_sensor_imperial_units(hass, units_imperial):
async def test_sensor_imperial_units(hass):
"""Test states of the sensor without forecast."""
hass.config.units = IMPERIAL_SYSTEM
await init_integration(hass)
state = hass.states.get("sensor.home_cloud_ceiling")