mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-02 18:11:36 +00:00
Home Assistant remove deprecated last_reset_topic and change state_class to total_increasing for energy. https://github.com/Koenkk/zigbee2mqtt/issues/8604
This commit is contained in:
@@ -456,9 +456,7 @@ class HomeAssistant extends Extension {
|
||||
},
|
||||
energy: {
|
||||
device_class: 'energy',
|
||||
state_class: 'measurement',
|
||||
last_reset_topic: true,
|
||||
last_reset_value_template: '1970-01-01T00:00:00+00:00',
|
||||
state_class: 'total_increasing',
|
||||
},
|
||||
smoke_density: {icon: 'mdi:google-circles-communities', state_class: 'measurement'},
|
||||
gas_density: {icon: 'mdi:google-circles-communities', state_class: 'measurement'},
|
||||
@@ -822,10 +820,6 @@ class HomeAssistant extends Extension {
|
||||
}
|
||||
}
|
||||
|
||||
if (payload.last_reset_topic) {
|
||||
payload.last_reset_topic = stateTopic;
|
||||
}
|
||||
|
||||
if (payload.position_topic) {
|
||||
payload.position_topic = stateTopic;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user