Add water level sensors provided by UK Environment Agency (#31954)

This commit is contained in:
Jc2k 2020-08-10 14:51:04 +01:00 committed by GitHub
parent f1fd8aa51f
commit f82f815304
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 829 additions and 0 deletions

View file

@ -0,0 +1,18 @@
"""eafm fixtures."""
from asynctest import patch
import pytest
@pytest.fixture()
def mock_get_stations():
"""Mock aioeafm.get_stations."""
with patch("homeassistant.components.eafm.config_flow.get_stations") as patched:
yield patched
@pytest.fixture()
def mock_get_station():
"""Mock aioeafm.get_station."""
with patch("homeassistant.components.eafm.sensor.get_station") as patched:
yield patched