Modernize SMHI weather (#97275)

* SMHI forecast service

* Mod weather

* reset weather

* Fix tests

* coverage

* add test
This commit is contained in:
G Johansson 2023-08-07 17:24:43 +02:00 committed by GitHub
parent 65365d1db5
commit 15eed166ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 10884 additions and 1305 deletions

View file

@ -1,10 +1,18 @@
"""Provide common smhi fixtures."""
import pytest
from homeassistant.components.smhi.const import DOMAIN
from tests.common import load_fixture
@pytest.fixture(scope="session")
def api_response():
"""Return an API response."""
return load_fixture("smhi.json")
return load_fixture("smhi.json", DOMAIN)
@pytest.fixture(scope="session")
def api_response_lack_data():
"""Return an API response."""
return load_fixture("smhi_short.json", DOMAIN)