Upgrade dsmr_parser to 0.18, re-enable tests (#31256)
This commit is contained in:
parent
747f5fd62c
commit
fd4f8d92d2
4 changed files with 5 additions and 13 deletions
|
@ -2,7 +2,7 @@
|
|||
"domain": "dsmr",
|
||||
"name": "DSMR Slimme Meter",
|
||||
"documentation": "https://www.home-assistant.io/integrations/dsmr",
|
||||
"requirements": ["dsmr_parser==0.12"],
|
||||
"requirements": ["dsmr_parser==0.18"],
|
||||
"dependencies": [],
|
||||
"codeowners": []
|
||||
}
|
||||
|
|
|
@ -447,7 +447,7 @@ doorbirdpy==2.0.8
|
|||
dovado==0.4.1
|
||||
|
||||
# homeassistant.components.dsmr
|
||||
dsmr_parser==0.12
|
||||
dsmr_parser==0.18
|
||||
|
||||
# homeassistant.components.dweet
|
||||
dweepy==0.3.0
|
||||
|
|
|
@ -162,7 +162,7 @@ directpy==0.5
|
|||
distro==1.4.0
|
||||
|
||||
# homeassistant.components.dsmr
|
||||
dsmr_parser==0.12
|
||||
dsmr_parser==0.18
|
||||
|
||||
# homeassistant.components.ee_brightbox
|
||||
eebrightbox==0.0.4
|
||||
|
|
|
@ -14,16 +14,10 @@ import asynctest
|
|||
import pytest
|
||||
|
||||
from homeassistant.bootstrap import async_setup_component
|
||||
from homeassistant.components.dsmr.sensor import DerivativeDSMREntity
|
||||
|
||||
from tests.common import assert_setup_component
|
||||
|
||||
# Imports disabled due to missing PyCRC on PyPi
|
||||
# Also disabled pylint/flake8 where this is used below
|
||||
# from homeassistant.components.dsmr.sensor import DerivativeDSMREntity
|
||||
|
||||
|
||||
pytest.skip("Dependency missing on PyPi", allow_module_level=True)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_connection_factory(monkeypatch):
|
||||
|
@ -103,9 +97,7 @@ async def test_derivative():
|
|||
|
||||
config = {"platform": "dsmr"}
|
||||
|
||||
# Disabled to satisfy pylint & flake8 caused by disabled import
|
||||
# pylint: disable=undefined-variable
|
||||
entity = DerivativeDSMREntity("test", "1.0.0", config) # noqa: F821
|
||||
entity = DerivativeDSMREntity("test", "1.0.0", config)
|
||||
await entity.async_update()
|
||||
|
||||
assert entity.state is None, "initial state not unknown"
|
||||
|
|
Loading…
Add table
Reference in a new issue