hass-core/tests/components/dsmr
dupondje 4f11ee6e0b
Fix 5B Gas meter in dsmr (#103506)
* Fix 5B Gas meter in dsmr

In commit 1b73219 the gas meter broke for 5B.
As the change can't be reverted easily without removing the peak usage
sensors, we implement a workaround.

The first MBUS_METER_READING2 value will contain the gas meter data just
like the previous BELGIUM_5MIN_GAS_METER_READING did.
But this without the need to touch dsmr_parser (version).

Fixes: #103306, #103293

* Use parametrize

* Apply suggestions from code review

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>

* Add additional tests + typo fix

---------

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2023-11-08 09:13:51 +01:00
..
__init__.py Consolidate all platforms that have tests (#22109) 2019-03-18 23:07:39 -07:00
conftest.py Use right equipment identifier in DSMR setup (#103494) 2023-11-06 14:19:47 +01:00
test_config_flow.py Parametrize DSMR serial config flow tests (#103524) 2023-11-07 14:13:57 +01:00
test_init.py Enable Ruff PT006 (#88165) 2023-02-15 14:09:50 +01:00
test_sensor.py Fix 5B Gas meter in dsmr (#103506) 2023-11-08 09:13:51 +01:00