Skip to content

Commit 5343be6

Browse files
author
Michael Kaspar
committed
added last_reported to state attributes
1 parent be3f98e commit 5343be6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

custom_components/pyscript/state.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
_LOGGER = logging.getLogger(LOGGER_PATH + ".state")
1515

16-
STATE_VIRTUAL_ATTRS = {"entity_id", "last_changed", "last_updated"}
16+
STATE_VIRTUAL_ATTRS = {"entity_id", "last_changed", "last_updated", "last_reported"}
1717

1818

1919
class StateVal(str):
@@ -26,6 +26,7 @@ def __new__(cls, state):
2626
new_var.entity_id = state.entity_id
2727
new_var.last_updated = state.last_updated
2828
new_var.last_changed = state.last_changed
29+
new_var.last_reported = state.last_reported
2930
return new_var
3031

3132

0 commit comments

Comments
 (0)