mirror of
https://github.com/elisspace/core.git
synced 2026-09-28 13:30:06 +00:00
Met.no - only update data if coordinates changed (#48756)
This commit is contained in:
@@ -29,6 +29,11 @@ async def test_tracking_home(hass, mock_weather):
|
||||
|
||||
assert len(mock_weather.mock_calls) == 8
|
||||
|
||||
# Same coordinates again should not trigger any new requests to met.no
|
||||
await hass.config.async_update(latitude=10, longitude=20)
|
||||
await hass.async_block_till_done()
|
||||
assert len(mock_weather.mock_calls) == 8
|
||||
|
||||
entry = hass.config_entries.async_entries()[0]
|
||||
await hass.config_entries.async_remove(entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
Reference in New Issue
Block a user