mirror of
https://github.com/home-assistant/core.git
synced 2026-09-25 17:04:04 -04:00
Fix station name sensor for metoffice (#145500)
This commit is contained in:
@@ -40,6 +40,12 @@ KINGSLYNN_SENSOR_RESULTS = {
|
||||
"probability_of_precipitation": "67",
|
||||
"pressure": "998.20",
|
||||
"wind_speed": "22.21",
|
||||
"wind_direction": "180",
|
||||
"wind_gust": "40.26",
|
||||
"feels_like_temperature": "3.4",
|
||||
"visibility_distance": "7478.00",
|
||||
"humidity": "97.5",
|
||||
"station_name": "King's Lynn",
|
||||
}
|
||||
|
||||
WAVERTREE_SENSOR_RESULTS = {
|
||||
@@ -49,6 +55,12 @@ WAVERTREE_SENSOR_RESULTS = {
|
||||
"probability_of_precipitation": "61",
|
||||
"pressure": "987.50",
|
||||
"wind_speed": "17.60",
|
||||
"wind_direction": "176",
|
||||
"wind_gust": "34.52",
|
||||
"feels_like_temperature": "5.8",
|
||||
"visibility_distance": "5106.00",
|
||||
"humidity": "95.13",
|
||||
"station_name": "Wavertree",
|
||||
}
|
||||
|
||||
DEVICE_KEY_KINGSLYNN = {(DOMAIN, TEST_COORDINATES_KINGSLYNN)}
|
||||
|
||||
@@ -28,6 +28,7 @@ from tests.common import MockConfigEntry, async_load_fixture, get_sensor_display
|
||||
|
||||
|
||||
@pytest.mark.freeze_time(datetime.datetime(2024, 11, 23, 12, tzinfo=datetime.UTC))
|
||||
@pytest.mark.usefixtures("entity_registry_enabled_by_default")
|
||||
async def test_one_sensor_site_running(
|
||||
hass: HomeAssistant,
|
||||
device_registry: dr.DeviceRegistry,
|
||||
@@ -78,6 +79,7 @@ async def test_one_sensor_site_running(
|
||||
|
||||
|
||||
@pytest.mark.freeze_time(datetime.datetime(2024, 11, 23, 12, tzinfo=datetime.UTC))
|
||||
@pytest.mark.usefixtures("entity_registry_enabled_by_default")
|
||||
async def test_two_sensor_sites_running(
|
||||
hass: HomeAssistant,
|
||||
device_registry: dr.DeviceRegistry,
|
||||
|
||||
Reference in New Issue
Block a user