Modernize SMHI weather (#97275)
* SMHI forecast service * Mod weather * reset weather * Fix tests * coverage * add test
This commit is contained in:
parent
65365d1db5
commit
15eed166ec
7 changed files with 10884 additions and 1305 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue