Skip to content

Commit

Permalink
Merge pull request #10 from dphroon/patch-2
Browse files Browse the repository at this point in the history
Update __init__.py
  • Loading branch information
bouwew authored Oct 1, 2021
2 parents fe7203c + bbe8645 commit 2386dfe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/sems2mqtt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,7 @@ def create_device(model):
'value_template':'{{ value_json.etotal_kwh }}',
'icon':'mdi:flash',
'state_topic':'sems/sensors',
'state_class': "measurement",
'last_reset_value_template':'1970-01-01T00:00:00+00:00',
'last_reset_topic':'sems/sensors',
'state_class': "total_increasing",
'device_class': 'energy',
'unique_id':'sems_produced_total_sensor',
'device': create_device(data['type'])
Expand Down

0 comments on commit 2386dfe

Please sign in to comment.