Update dsmr_parser to v0.33 (#71946)

pull/71996/head
Franck Nijhof 2022-05-17 06:04:59 +02:00 committed by GitHub
parent 0608506bac
commit 99f68ab858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -271,7 +271,7 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
state_class=SensorStateClass.TOTAL_INCREASING, state_class=SensorStateClass.TOTAL_INCREASING,
), ),
DSMRSensorEntityDescription( DSMRSensorEntityDescription(
key=obis_references.BELGIUM_HOURLY_GAS_METER_READING, key=obis_references.BELGIUM_5MIN_GAS_METER_READING,
name="Gas Consumption", name="Gas Consumption",
dsmr_versions={"5B"}, dsmr_versions={"5B"},
is_gas=True, is_gas=True,

View File

@ -2,7 +2,7 @@
"domain": "dsmr", "domain": "dsmr",
"name": "DSMR Slimme Meter", "name": "DSMR Slimme Meter",
"documentation": "https://www.home-assistant.io/integrations/dsmr", "documentation": "https://www.home-assistant.io/integrations/dsmr",
"requirements": ["dsmr_parser==0.32"], "requirements": ["dsmr_parser==0.33"],
"codeowners": ["@Robbie1221", "@frenck"], "codeowners": ["@Robbie1221", "@frenck"],
"config_flow": true, "config_flow": true,
"iot_class": "local_push", "iot_class": "local_push",

View File

@ -560,7 +560,7 @@ doorbirdpy==2.1.0
dovado==0.4.1 dovado==0.4.1
# homeassistant.components.dsmr # homeassistant.components.dsmr
dsmr_parser==0.32 dsmr_parser==0.33
# homeassistant.components.dwd_weather_warnings # homeassistant.components.dwd_weather_warnings
dwdwfsapi==1.0.5 dwdwfsapi==1.0.5

View File

@ -415,7 +415,7 @@ discovery30303==0.2.1
doorbirdpy==2.1.0 doorbirdpy==2.1.0
# homeassistant.components.dsmr # homeassistant.components.dsmr
dsmr_parser==0.32 dsmr_parser==0.33
# homeassistant.components.dynalite # homeassistant.components.dynalite
dynalite_devices==0.1.46 dynalite_devices==0.1.46

View File

@ -393,7 +393,7 @@ async def test_belgian_meter(hass, dsmr_connection_fixture):
(connection_factory, transport, protocol) = dsmr_connection_fixture (connection_factory, transport, protocol) = dsmr_connection_fixture
from dsmr_parser.obis_references import ( from dsmr_parser.obis_references import (
BELGIUM_HOURLY_GAS_METER_READING, BELGIUM_5MIN_GAS_METER_READING,
ELECTRICITY_ACTIVE_TARIFF, ELECTRICITY_ACTIVE_TARIFF,
) )
from dsmr_parser.objects import CosemObject, MBusObject from dsmr_parser.objects import CosemObject, MBusObject
@ -411,7 +411,7 @@ async def test_belgian_meter(hass, dsmr_connection_fixture):
} }
telegram = { telegram = {
BELGIUM_HOURLY_GAS_METER_READING: MBusObject( BELGIUM_5MIN_GAS_METER_READING: MBusObject(
[ [
{"value": datetime.datetime.fromtimestamp(1551642213)}, {"value": datetime.datetime.fromtimestamp(1551642213)},
{"value": Decimal(745.695), "unit": "m3"}, {"value": Decimal(745.695), "unit": "m3"},