Give good example.
This commit is contained in:
parent
9fa0e14187
commit
4f90fc4be6
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
|||
devices = [DSMREntity(name, obis) for name, obis in obis_mapping]
|
||||
|
||||
# Protocol version specific obis
|
||||
if dsmr_version in ['4', '5']:
|
||||
if dsmr_version in ('4', '5'):
|
||||
gas_obis = obis_ref.HOURLY_GAS_METER_READING
|
||||
else:
|
||||
gas_obis = obis_ref.GAS_METER_READING
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue