mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 13:00:11 +00:00
Add tier summation delivered for Lixee Zlinky TIC (#82602)
* Add tier summation delivered for zlinky * Improve name case * Add other tiers and register tier * Fix smartenergy sensor update * Account for new reporting configuration in unit tests * Use cluster ID attributes instead of hardcoding the values * Use tier names instead of the numeric constants for formatter * Revert active register tier delivered * Fix tests Co-authored-by: puddly <32534428+puddly@users.noreply.github.com>
This commit is contained in:
@@ -309,7 +309,7 @@ async def async_test_device_temperature(hass, cluster, entity_id):
|
||||
smartenergy.Metering.cluster_id,
|
||||
"instantaneous_demand",
|
||||
async_test_metering,
|
||||
1,
|
||||
9,
|
||||
{
|
||||
"demand_formatting": 0xF9,
|
||||
"divisor": 1,
|
||||
@@ -323,7 +323,7 @@ async def async_test_device_temperature(hass, cluster, entity_id):
|
||||
smartenergy.Metering.cluster_id,
|
||||
"summation_delivered",
|
||||
async_test_smart_energy_summation,
|
||||
1,
|
||||
9,
|
||||
{
|
||||
"demand_formatting": 0xF9,
|
||||
"divisor": 1000,
|
||||
|
||||
Reference in New Issue
Block a user