core/homeassistant/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
config_flow.py Use right equipment identifier in DSMR setup (#103494) 2023-11-06 14:19:47 +01:00
const.py Fix 5B Gas meter in dsmr (#103506) 2023-11-08 09:13:51 +01:00
manifest.json Update dsmr-parser to 1.3.1 to fix parsing issues (#103572) 2023-11-07 10:38:37 +01:00
sensor.py Fix 5B Gas meter in dsmr (#103506) 2023-11-08 09:13:51 +01:00
strings.json Add peak usage sensors to dsmr (#102227) 2023-10-20 15:59:34 +02:00