Extend lua alerts API with alert:set_require_attention()

This commit is contained in:
Alfredo Cardigliano 2025-02-28 11:58:08 +01:00
parent a251974b21
commit ab9224d2ce
3 changed files with 9 additions and 0 deletions

View file

@ -220,6 +220,7 @@ function alerts_api.store(entity_info, type_info, when)
entity_id = entity_info.alert_entity.entity_id,
entity_val = entity_info.entity_val,
score = type_info.score,
require_attention = type_info.require_attention or false,
device_type = type_info.device_type,
device_name = type_info.device_name,
tstamp = when,